var AdfCopyright="Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved."; var AdfBootstrap= new Object(); Date.prototype.equals= function(x0) { var x1=false; if (x0["getUTCDate"]) { x1=(this.valueOf()==x0.valueOf()); } return x1; } AdfBootstrap._startTime= new Date().getTime(); AdfStrings= new Object(); AdfStrings.COMMA=","; AdfStrings.START_CURLY_BRACKET="{"; AdfStrings.CLOSE_CURLY_BRACKET="}"; AdfStrings.EQUALS="="; AdfStrings.count= function(x0,x1) { AdfAssert.assertString(x0); AdfAssert.assertNonEmptyString(x1); var x2=0; var x3=0; var x4=x0.length; var x5=x1.length; while(x32) { x1+="("; for(var x2=2;x20,"empty string"); } } AdfAssert.assertString= function(x37,x38) { if (AdfAssert.DEBUG) { AdfAssert.assertType(x37,"string",x38,1,false); } } AdfAssert.assertStringOrNull= function(x39,x40) { if (AdfAssert.DEBUG) { AdfAssert.assertType(x39,"string",x40,1,true); } } AdfAssert.assertFunction= function(x41,x42) { if (AdfAssert.DEBUG) { AdfAssert.assertType(x41,"function",x42,1,false); } } AdfAssert.assertFunctionOrNull= function(x43,x44) { if (AdfAssert.DEBUG) { AdfAssert.assertType(x43,"function",x44,1,true); } } AdfAssert.assertBoolean= function(x45,x46) { if (AdfAssert.DEBUG) { AdfAssert.assertType(x45,"boolean",x46,1,false); } } AdfAssert.assertNumber= function(x47,x48) { if (AdfAssert.DEBUG) { AdfAssert.assertType(x47,"number",x48,1,false); } } AdfAssert.assertNumberOrNull= function(x49,x50) { if (AdfAssert.DEBUG) { AdfAssert.assertType(x49,"number",x50,1,true); } } AdfAssert.assertArray= function( x51, x52 ) { if (AdfAssert.DEBUG) { if (!AdfCollections.isArray(x51)) { if (x52==undefined) x52=x51 + " is not an array"; AdfAssert.assertionFailed(x52,1); } } } AdfAssert.assertArrayOrNull= function( x53, x54) { if (AdfAssert.DEBUG&&(x53!=null)) { if (!AdfCollections.isArray(x53)) { if (x54==undefined) x54=x53 + " is not an array"; AdfAssert.assertionFailed(x54,1); } } } AdfAssert.assertNonNumeric= function( x55, x56 ) { if (AdfAssert.DEBUG) { if (!isNaN(x55)) { if (x56==undefined) x56=x55 + " is convertible to a number"; AdfAssert.assertionFailed(x56,1); } } } AdfAssert.assertNumeric= function( x57, x58 ) { if (AdfAssert.DEBUG) { if (isNaN(x57)) { if (x58==undefined) x58=x57 + " is not convertible to a number"; AdfAssert.assertionFailed(x58,1); } } } AdfAssert.assertInSet= function( x59, x60, x61) { if ((x59==null)||(x60[x59.toString()]==undefined)) { if (x61==undefined) { var x62=" is not in set: {"; for(var x63 in x60) { x62+=x63; x62+="," } x62+="}"; x61=x59 + x62; } AdfAssert.assertionFailed(x61,1); } } AdfAssert.assertionFailed= function( x64, x65, x66) { if (!x65) x65=0; var x67="Assertion"; if (x66) { x67+=" (" + x66 + ")"; } x67+=" failed: "; if (x64!=undefined) { x67+=x64; } var x68=AdfAssert._getStackTrace(x65 + 1); var x69=AdfAssert._getStackString(x68); x67+="\nStackTrace:\n" + x69; var x70= new Error(x67); alert(x67); throw x70; } AdfAssert.getFunctionName= function(x71) { var x72=x71[AdfAssert.FUNC_NAME_PROPERTY]; if (x72==undefined) { var x73=x71.toString(); var x74=x73.indexOf('('); var x75=x73.lastIndexOf(" ",x74); x72=x73.substring(x75 + 1,x74); if (!x72.length) x72=null; x71[AdfAssert.FUNC_NAME_PROPERTY]=x72; } return x72; } AdfAssert.getStackString= function(x76) { if (x76==null) x76=1; return AdfAssert._getStackString(AdfAssert._getStackTrace(1)); } AdfAssert._getStackTrace= function( x77) { if (x77==undefined) x77=0; AdfAssert.assert(x77>=0); var x78= new Array(); try { var x79=AdfAssert._getStackTrace.caller; while(x79&&(x78.length=this._level); } AdfLogger.prototype.getName= function() { return this._loggerName; } AdfLogger.prototype.getLogWriter= function() { return this._logWriter; } AdfLogger.prototype.setFilter= function(x7) { AdfAssert.assertFunctionOrNull(x7); this._filter=x7; } AdfLogger.prototype.getFilter= function() { return this._filter; } AdfLogger.prototype.log= function( x8) { AdfAssert.assert(x8); var x9=x8.level; if (x90) { for(var x3=0;x30) { var x9=this._document.getElementsByTagName("applet"); for(i=0;i\n" + "\t\t" + new Date().toUTCString() + "\n" + "\t\t" + AdfDhtmlPage._ECID + "\n" + "\t\t" + this._document.title + "\n" + "\t\t" + this._window.location.host + "\n" + "\t\t" + this._window.location.pathname + "\n" + "\t\n"; if (x11.length) { var x13=x11.length; for(var x14=0;x14\n"; } if (x21[1]) { x22+="\t\t\t" + x21[1] + "\n"; } if (x21[2]) { x22+="\t\t\t" + x21[2] + "\n"; } for(i=3;i\n"; var x28=this.FormatError(x24[AdfLogRecord.ERROR_FIELD]); if (x28) { x27+="\t\t" + x28 + "\n"; } x27+="\t\t\n" + this.FormatMessage(x24[AdfLogRecord.MESSAGE_FIELD]) + "\t\t\n\t"; return x27; } AdfClientFileLogWriter.prototype.FormatWhen= function(x29) { if (!x29) x29= new Date(); return x29.getUTCHours() + ":" + x29.getUTCMinutes() + ":" + x29.getUTCSeconds()+ "." + x29.getUTCMilliseconds(); } AdfClientFileLogWriter.prototype._logToBackupLogWriter= function(x30) { this._backupLogWriter.publish(new AdfLogRecord(AdfLogger.WARNING,x30)); } AdfClientFileLogWriter._XML_FILE_HEADER="\n"; AdfClientFileLogWriter._PROFILER_VERSION="\n"; AdfClientFileLogWriter._BROWSER_VERSION=""+navigator.appName+" "+navigator.appVersion+"\n"; AdfClientFileLogWriter._START_TAG=""; AdfClientFileLogWriter._END_TAG=""; function AdfStatusLogWriter() { this.Init(); } AdfObject.createSubclass(AdfStatusLogWriter,AdfLogWriter); AdfStatusLogWriter.prototype.PublishImpl= function( x0) { this.CheckIfClosed(); AdfAssert.assert(x0,"null logRecord"); top.status=this.FormatLogRecord(x0); } function AdfConsoleLogWriter( x0, x1){ this.Init(x0,x1); } AdfObject.createSubclass(AdfConsoleLogWriter,AdfLogWriter); AdfConsoleLogWriter.prototype.Init= function(x0,x1) { AdfAssert.assertObject(x0); AdfAssert.assertPrototype(x1,AdfLogWriter); AdfConsoleLogWriter.superclass.Init.call(this); this._parentWindow=x0; this._backupLogWriter=x1; this._loggedMessages= new Array(); this._columns=[AdfLogRecord.LEVEL_FIELD,AdfLogRecord.MESSAGE_FIELD,AdfLogRecord.WHEN_FIELD,AdfLogRecord.ERROR_FIELD]; var x2= new Object(); x2[AdfLogRecord.LEVEL_FIELD]="FormatLevel"; x2[AdfLogRecord.MESSAGE_FIELD]="FormatMessage"; x2[AdfLogRecord.WHEN_FIELD]="FormatWhen"; x2[AdfLogRecord.ERROR_FIELD]="FormatError"; this._formatters=x2; this._consoleWindow=null; } AdfConsoleLogWriter.prototype.publish= function( x3) { this.CheckIfClosed(); AdfAssert.assert(x3,"null logRecord"); this._loggedMessages.push(x3); var x4=this.getFilter(); try { if (x4&& !x4(x3)) return; if (!this._busy) { this._busy=true; try { this._showMessage(x3); } finally { this._busy=false; } } } catch(e) { this._logInternalError(e,"Error publishing AdfLogRecord"); } } AdfConsoleLogWriter.prototype.close= function() { AdfConsoleLogWriter.superclass.close.call(this); if (this._consoleWindow) { try { this._consoleWindow.document.body.onunload=null; } catch(problem) { } this._consoleWindow.close(); this._consoleWindow=null; } } AdfConsoleLogWriter.prototype.setFilter= function(x5) { var x6=this.getFilter(); if (x5!=x6) { AdfConsoleLogWriter.superclass.setFilter.call(this,x5); this._updateRecords(); } } AdfConsoleLogWriter.prototype.clear= function() { this._loggedMessages= new Array(); this._clearDisplayedRecords(); } AdfConsoleLogWriter.prototype.updateFilter= function(x7) { x7=AdfUIUtils.trim(x7); if (x7.length) { this.setFilter(new Function("record","return (" + x7 + ");")); } else { this.setFilter(null); } } AdfConsoleLogWriter.prototype.FormatMessage= function(x8) { x8=x8.replace(//g,">"); x8=x8.replace(/\n/g,"
"); return x8; } AdfConsoleLogWriter.prototype.FormatError= function(x9) { if (!x9) return ""; var x10=""; var x11=true; for(var x12 in x9) { if (x12==x12.toUpperCase()) continue; try { var x13=x9[x12]; if (typeof(x13)=="function") continue; var x14=x13; if ((x12=="stack")&&("string"== typeof x13)) { x14="
    "; var x15=AdfConsoleLogWriter._GECKO_STACK_RE; var x16; while(x16=x13.match(x15)) { x14+="
  1. "; var x17=x16[0]; var x18= -1; var x19=x17.lastIndexOf(':'); if (x19!= -1) { var x18=x17.lastIndexOf('@'); } if (x18!= -1) { x18 ++; x14+=x17.substring(0,x18); var x20=x17.substring(x18,x19); var x21=x20; var x22=x20.lastIndexOf("/"); if (x22!= -1) { x21=x20.substring(x22 + 1); } var x23="target='_blank'"; var x24="?"; if (x19!= -1) { x24=x17.substring(x19 + 1); if ((x20.length>0)&& AdfConsoleLogWriter._LINK_TRACE_TO_LINE_NUMBERS&& (navigator.userAgent.toLowerCase().indexOf("gecko")!= -1)) { x23=""; x20="javascript:viewSource('" + x20 + "','" + x21 + "'," + x24 + ")"; } } x14+=""; x14+=x21 + " Line: " + x24; } else { x14+=x17; } x14+="
  2. "; x13=x13.substring(x17.length); } x14+="
"; } if (!x11) { x10+="
" } else { x10+="" x11=false; } x10+=x12 + ":" + x14; } catch(e) { } } return x10; } AdfConsoleLogWriter.prototype._addDisplayedRecords= function() { var x25=this._getDocument(); var x26=x25.getElementById("consoleLogRecords"); var x27=this._loggedMessages; var x28=this.getFilter(); var x29=x27.length; for(var x30=x29 - 1;x30>=0;x30--) { var x31=x27[x30]; try { if (!x28||x28(x31)) { var x32=this._createRow(x31); x26.appendChild(x32); } } catch(e) { this._logInternalError(e,"Error displaying AdfLogRecord"); } } } AdfConsoleLogWriter.prototype._updateRecords= function() { this._clearDisplayedRecords(); this._addDisplayedRecords(); } AdfConsoleLogWriter.prototype._clearDisplayedRecords= function() { var x33=this._getDocument(); AdfAssert.assert(x33); var x34=x33.getElementById("consoleLogRecords"); AdfAssert.assertDomElement(x34); var x35=x34.parentNode; var x36=x34.nextSibling; x35.removeChild(x34); var x37=x33.createElement("tbody"); x37.id="consoleLogRecords"; x35.insertBefore(x37,x36); } AdfConsoleLogWriter.prototype._createHeaders= function() { var x38=this._getDocument(); var x39=x38.createElement("tr"); var x40=this._columns; var x41=x40.length; for(var x42=0;x42 \ \ Console Log \ \ \ \ \ \
\ \
\
\ \ \ \ \ \ \
\
\ \ "); x65.close(); x64.logWriter=this; return x64; } AdfConsoleLogWriter.prototype._logInternalError= function(x66,x67){ AdfAssert.assertPrototype(x66,Error); this._backupLogWriter.publish(new AdfLogRecord(AdfLogger.WARNING,x67,x66)); } AdfConsoleLogWriter.prototype._handleEvaluate= function(evalString) { var parentWindow=this._parentWindow; if (!(typeof parentWindow.execScript=="function")) { parentWindow.execScript= new Function("evalString","return eval(evalString);"); } var resultRecord; try { var result=parentWindow.execScript(evalString); resultRecord= new AdfLogRecord(AdfLogger.INFO,evalString + "=" + result); } catch(e) { resultRecord= new AdfLogRecord(AdfLogger.INFO,"Error evaulating:" + evalString,e); } this.publish(resultRecord); } AdfConsoleLogWriter.prototype._windowUnloaded= function() { var x68=this._consoleWindow; if (x68) { x68.logWriter=null; this._consoleWindow=null; } } AdfConsoleLogWriter.prototype._windowResized= function() { var x69=this._getDocument(); var x70=this._getRecordDiv(); AdfAssert.assertDomElement(x70); var x71=x69.documentElement; AdfAssert.assertDomElement(x71); var x72=x71.clientHeight; if (x72==0) { x72=x71.offsetHeight; } var x73=x72 - x70.offsetTop; if (x73>=0) { x70.style.height=x73 + "px"; } } AdfConsoleLogWriter.prototype.HandleOnLoad= function() { this._getDocument().getElementById("evalInput").focus(); this._addDisplayedRecords(); this._windowResized(); } AdfConsoleLogWriter._GECKO_STACK_RE=/\w*\([^\)]*\)@[^\s]*:\d+\s/; AdfConsoleLogWriter._LINK_TRACE_TO_LINE_NUMBERS=true; function AdfBaseEvent() { } AdfObject.createSubclass(AdfBaseEvent); AdfBaseEvent.CAPTURING_PHASE=0; AdfBaseEvent.AT_TARGET_PHASE=1; AdfBaseEvent.BUBBLING_PHASE=2; AdfBaseEvent.prototype.getType= function() { return this._type } AdfBaseEvent.prototype.getSource= function() { return this._source; } AdfBaseEvent.prototype.getCurrentTarget= function() { return this.getSource(); } AdfBaseEvent.prototype.getEventPhase= function() { return AdfBaseEvent.AT_TARGET; } AdfBaseEvent.prototype.getDoesBubbles= function() { return false; } AdfBaseEvent.prototype.stopBubbling= function() { this._bubbleStopped=true; } AdfBaseEvent.prototype.isBubblingStopped= function() { return (this._bubbleStopped==true); } AdfBaseEvent.prototype.propagatesToServer= function() { return false; } AdfBaseEvent.prototype.isValidationNeeded= function() { return false; } AdfBaseEvent.prototype.isImmediate= function() { return false; } AdfBaseEvent.prototype.getRoot= function() { return (this._root); } AdfBaseEvent.prototype.setRoot= function(x0) { this._root=x0; } AdfBaseEvent.prototype.isCancelable= function() { return true; } AdfBaseEvent.prototype.isCanceled= function() { return (this._canceled==true); } AdfBaseEvent.prototype.isPartial= function() { return (this._partial==true); } AdfBaseEvent.prototype.setPartial= function(x1) { this._partial=x1; } AdfBaseEvent.prototype.isFullSubmitForced= function() { return (this._fullSubmitForced==true); } AdfBaseEvent.prototype.forceFullSubmit= function() { this._fullSubmitForced=true; } AdfBaseEvent.prototype.isResponseExpected= function() { return !(this._noResponse==true); } AdfBaseEvent.prototype.noResponseExpected= function() { this._noResponse=true; } AdfBaseEvent.prototype.isResponseAnnounced= function() { return true; } AdfBaseEvent.prototype.cancel= function() { if (this.isCancelable()) { this._canceled=true; } } AdfBaseEvent.prototype.getProperties= function() { var x2={}; this.AddMarshalledProperties(x2); if(!this.getClearMessages()) { x2.suppressMessageClear="true"; } if(!this.getShowMessages()) { x2.suppressMessageShow="true"; } x2.type=this._type; return x2; } AdfBaseEvent.prototype.getShowMessages= function() { return true; } AdfBaseEvent.prototype.getClearMessages= function() { return true; } AdfBaseEvent.prototype.AddMarshalledProperties= function( x3) { } AdfBaseEvent.prototype.toDebugString= function() { var x4=this.getTypeName() + " [type=" + this.getType() + ", source=" + this.getSource(); if (this.isCanceled()) { x4+=", canceled"; } return x4 + "]"; } AdfBaseEvent.prototype.Init= function( x5, x6) { AdfAssert.assertString(x6); AdfBaseEvent.superclass.Init.call(this); AdfAssert.assertObject(x5,"source must be specified"); this._source=x5; this._type=x6; } AdfBaseEvent.prototype.preventUserInput= function() { if (this.propagatesToServer()) { this._userInputPrevented=true; } else { AdfLogger.LOGGER.logMessage(AdfLogger.WARNING,"Ignoring UI blocking request because the event does not propagate to the server.") } } AdfBaseEvent.prototype.IsUserInputPrevented= function() { return (this._userInputPrevented==true); } AdfBaseEvent.prototype.IsDeleveryDiscrete= function() { return false; } function AdfPhasedEvent( x0, x1) { } AdfObject.createSubclass(AdfPhasedEvent,AdfBaseEvent); AdfPhasedEvent.prototype.setCurrentTarget= function( x0) { AdfAssert.assert(x0,"newTarget must exist"); this._currTarget=x0; } AdfPhasedEvent.prototype.getCurrentTarget= function() { return this._currTarget; } AdfPhasedEvent.prototype.nextEventPhase= function() { var x1=this.getEventPhase(); AdfAssert.assertNumeric(x1,"eventPhase doesn't exist"); this._eventPhase=(x1==AdfBaseEvent.CAPTURING_PHASE) ?AdfBaseEvent.AT_TARGET_PHASE :(x1==AdfBaseEvent.AT_TARGET_PHASE) ?AdfBaseEvent.BUBBLING_PHASE :undefined; } AdfPhasedEvent.prototype.getEventPhase= function() { return this._eventPhase; } AdfPhasedEvent.prototype.getDoesBubbles= function() { return true; } AdfPhasedEvent.prototype.isCancelable= function() { return true; } AdfPhasedEvent.prototype.toDebugString= function() { var x2=AdfPhasedEvent.superclass.toDebugString.call(this); var x3=this.getEventPhase(); var x4=(x3==AdfBaseEvent.CAPTURING_PHASE) ?"CAPTURING_PHASE" :(x3==AdfBaseEvent.AT_TARGET_PHASE) ?"AT_TARGET_PHASE" :(x3==AdfBaseEvent.BUBBLING_PHASE) ?"BUBBLING_PHASE" :""; return x2.substring(0,x2.length - 1) + ", phase=" + x4 + "]"; } AdfPhasedEvent.prototype.Init= function( x5, x6) { AdfPhasedEvent.superclass.Init.call(this,x5,x6); this._currTarget=null; this._eventPhase=AdfBaseEvent.CAPTURING_PHASE; } function AdfComponentEvent( x0, x1) { if (arguments.length) { AdfAssert.assertPrototype(x0,AdfUIComponent); this.Init(x0,x1); } } AdfComponentEvent.FOCUS_EVENT_TYPE="focus"; AdfComponentEvent.BLUR_EVENT_TYPE="blur"; AdfObject.createSubclass(AdfComponentEvent,AdfPhasedEvent); AdfComponentEvent.prototype.queue= function(x0) { if (x0!==undefined) { AdfAssert.assertBoolean(x0); this.setPartial(x0); } this.getSource().queueEvent(this); } function AdfDomComponentEvent( x0, x1, x2 ) { if (arguments.length) { this.Init(x0,x1,x2); } } AdfObject.createSubclass(AdfDomComponentEvent,AdfComponentEvent); AdfDomComponentEvent.prototype.getNativeEvent= function() { return this.Event; } AdfDomComponentEvent.prototype.getNativeEventTarget= function() { var x0=this.Event; if (x0) { return AdfAgent.AGENT.getEventTarget(x0); } else { return null; } } AdfDomComponentEvent.prototype.clone= function() { var x1=AdfAgent.AGENT.cloneEvent(this.Event); return new this.constructor(this.getSource(),this.getType(),x1); } AdfDomComponentEvent.prototype.Init= function( x2, x3, x4) { AdfAssert.assert(x4,"Native event must be specified"); AdfDomComponentEvent.superclass.Init.call(this,x2,x3); this.Event=x4; } AdfObject.createSubclass(AdfComponentFocusEvent,AdfComponentEvent); function AdfComponentFocusEvent( x0, x1, x2) { if (arguments.length) { this.Init(x0,x1,x2); } } AdfComponentFocusEvent.prototype.getPreviousComponent= function() { return this.PrevComponent; } AdfComponentFocusEvent.prototype.getNextComponent= function() { return this.getSource(); } AdfComponentFocusEvent.prototype.Init= function( x0, x1, x2) { AdfAssert.assertPrototypeOrNull(x0,AdfUIComponent); AdfAssert.assertPrototypeOrNull(x1,AdfUIComponent); AdfComponentFocusEvent.superclass.Init.call(this,x1,x2); this.PrevComponent=x0; } AdfObject.createSubclass(AdfDomComponentFocusEvent,AdfComponentFocusEvent); function AdfDomComponentFocusEvent( x0, x1, x2, x3) { if (arguments.length) { this.Init(x0,x1,x2,x3); } } AdfDomComponentFocusEvent.prototype.Init= function( x0, x1, x2, x3) { AdfAssert.assert(x3,"Native event must be specified"); AdfDomComponentFocusEvent.superclass.Init.call(this,x0,x1,x2); this.Event=x3; } AdfDomComponentFocusEvent.prototype.getNativeEvent=AdfDomComponentEvent.prototype.getNativeEvent; AdfDomComponentFocusEvent.prototype.getNativeEventTarget=AdfDomComponentEvent.prototype.getNativeEventTarget; AdfDomComponentFocusEvent.prototype.clone=AdfDomComponentEvent.prototype.clone; function AdfUIInputEvent() { } AdfObject.createSubclass(AdfUIInputEvent,AdfComponentEvent); AdfUIInputEvent.CLICK_EVENT_TYPE="click"; AdfUIInputEvent.DOUBLE_CLICK_EVENT_TYPE="dblClick"; AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE="mouseDown"; AdfUIInputEvent.MOUSE_UP_EVENT_TYPE="mouseUp"; AdfUIInputEvent.MOUSE_MOVE_EVENT_TYPE="mouseMove"; AdfUIInputEvent.MOUSE_IN_EVENT_TYPE="mouseOver"; AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE="mouseOut"; AdfUIInputEvent.KEY_DOWN_EVENT_TYPE="keyDown"; AdfUIInputEvent.KEY_UP_EVENT_TYPE="keyUp"; AdfUIInputEvent.KEY_PRESS_EVENT_TYPE="keyPress"; AdfUIInputEvent.FOCUS_EVENT_TYPE="focus"; AdfUIInputEvent.BLUR_EVENT_TYPE="blur"; AdfUIInputEvent.CONTEXT_MENU_EVENT_TYPE="contextMenu"; AdfUIInputEvent.LEFT_BUTTON_FLAG=1; AdfUIInputEvent.RIGHT_BUTTON_FLAG=2; AdfUIInputEvent.MIDDLE_BUTTON_FLAG=4; AdfUIInputEvent.prototype.getOffsetX= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getOffsetY= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getClientX= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getClientY= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getPageX= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getPageY= function() { } AdfUIInputEvent.prototype.getScreenX= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getScreenY= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getButtons= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.isLeftButtonPressed= function() { return (this.getButtons()&AdfUIInputEvent.LEFT_BUTTON_FLAG)!=0; } AdfUIInputEvent.prototype.isRightButtonPressed= function() { return (this.getButtons()&AdfUIInputEvent.RIGHT_BUTTON_FLAG)!=0; } AdfUIInputEvent.prototype.getKeyCode= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getKeyModifiers= function() { AdfAssert.failedInAbstractFunction(); } AdfUIInputEvent.prototype.getKeyStroke= function() { var x0=this.getKeyCode(); if (x0) { return AdfKeyStroke.getKeyStroke(x0,this.getKeyModifiers()); } else { return null; } } function AdfAgent(x0) { this.Init(AdfAgent.UNKNOWN_PLATFORM,AdfAgent.guessOS(),AdfAgent.guessVersion(),x0); } AdfObject.createSubclass(AdfAgent); AdfAgent.IE_PLATFORM="ie"; AdfAgent.GECKO_PLATFORM="gecko"; AdfAgent.WEBKIT_PLATFORM="webkit"; AdfAgent.OPERA_PLATFORM="opera"; AdfAgent.UNKNOWN_PLATFORM="unknown"; AdfAgent.WINDOWS_OS="Windows"; AdfAgent.SOLARIS_OS="Solaris"; AdfAgent.MAC_OS="Mac"; AdfAgent.UNKNOWN_OS="Unknown"; AdfAgent.getAgent= function(x0) { if (x0!=null) { AdfAgent._agent=null; } if (!AdfAgent._agent) { AdfAssert.assert(x0!=null); var x1=navigator.userAgent.toLowerCase(); var x2; var x3; try { if(x1.indexOf("opera")!=-1) { x2= new AdfOperaAgent(x0); if (checkAgentSupport) alert(AdfAgent._UNSUPPORTED_BROWSER_ALERT); } else if (x1.indexOf("msie")!=-1) { x3=AdfAgent._parseFloatVersion(x1,/msie (\d+[.]\d+)/); if (window.XMLHttpRequest||(x3>=7)) { if (x3>=9) x2= new AdfIE9Agent(x0); else if (x3>=8) x2= new AdfIE8Agent(x0); else x2= new AdfIEAgent(x0); } else { if (checkAgentSupport) alert(AdfAgent._UNSUPPORTED_BROWSER_ALERT); x2= new AdfIE6Agent(x0); } } else if ((x1.indexOf("applewebkit")!=-1)|| (x1.indexOf("safari")!=-1)) { x3=AdfAgent._parseFloatVersion(x1,/applewebkit\/(\d+([.]\d+)*)/); if (x1.indexOf("mobile")== -1) { x2= new AdfSafariAgent(x3,x0); } else { x2= new AdfSafariMobileAgent(x3,x0); } if (checkAgentSupport&&(x3<525.18)) { if (x3<525.18&&x1.indexOf("chrome/")!=-1) { } else { alert(AdfAgent._UNSUPPORTED_BROWSER_ALERT); } } } else if(x1.indexOf("gecko/")!=-1) { x3=AdfAgent._parseFloatVersion(x1,/rv:(\d+[.]\d+)/); if (x3>=1.9) { x2= new AdfGecko19Agent(x3,x0); } else if (x3>=1.8) { x2= new AdfGeckoAgent(x3,x0); } else { x2= new AdfGecko17Agent(x3,x0); } if (checkAgentSupport) { var x4=AdfAgent._isGeckoAgentSupported(x1,x3); if (!x4) alert(AdfAgent._UNSUPPORTED_BROWSER_ALERT); } } else if (!x2) { if (checkAgentSupport) { alert(AdfAgent._UNSUPPORTED_BROWSER_ALERT); } x2= new AdfAgent(x0); } AdfAgent._agent=x2; } catch(e) { AdfAgent._agent= new AdfAgent(x0); AdfLogger.LOGGER.logError(e,AdfLogger.SEVERE,"Unable to initialize AdfAgent"); } } return AdfAgent._agent; } AdfAgent.guessOS= function() { var x5=navigator.userAgent.toLowerCase(); if (x5.indexOf('win')!= -1) { return AdfAgent.WINDOWS_OS; } else if (x5.indexOf('mac')!= -1) { return AdfAgent.MAC_OS; } else if (x5.indexOf('sunos')!= -1) { return AdfAgent.SOLARIS_OS; } } AdfAgent.guessVersion= function() { return parseFloat(navigator.appVersion); } AdfAgent.InitClass= function() { AdfAgent._agent=null; var x6=AdfAgent.KEY_EVENTS; for(var x7=0;x7=x71) { var x72=this.getElementLeft(x68); if (x69>=x72) { return (x70<=x71 + x68.offsetHeight)&& (x69<=x72 + x68.offsetWidth); } } return false; } AdfAgent.prototype.pointInElementOrChildBounds= function(x73,x74,x75) { return this.pointInElementBounds(x73,x74,x75); } AdfAgent.getCSSLengthAsInt= function(x76) { if ((x76.length)>0&&(x76!='auto')) { var x77=parseInt(x76); if (isNaN(x77)) x77=0; return x77; } else { return 0; } } AdfAgent.prototype.getBoxSizing= function(x78,x79) { if (!x79) x79=this.getComputedStyle(x78); return x79.boxSizing; } AdfAgent.prototype.getOuterWidth= function( x80, x81, x82) { if (!x82) x82=this.getComputedStyle(x80); if(this.getBoxSizing(x80,x82)=="border-box") { return x81; } var x83=AdfAgent.getCSSLengthAsInt; var x84=x81 + x83(x82.paddingLeft) + x83(x82.paddingRight) + x83(x82.marginLeft) + x83(x82.marginRight); if (x80.tagName.toUpperCase()!="TABLE") x84+=(x83(x82.borderLeftWidth) + x83(x82.borderRightWidth)); return x84; } AdfAgent.prototype.getOuterHeight= function( x85, x86, x87) { if (!x87) x87=this.getComputedStyle(x85); if(this.getBoxSizing(x85,x87)=="border-box") { return x86; } var x88=AdfAgent.getCSSLengthAsInt; var x89=x86 - x88(x87.paddingTop) + x88(x87.paddingBottom) + x88(x87.marginTop) + x88(x87.marginBottom); if (x85.tagName.toUpperCase()!="TABLE") x89+=(x88(x87.borderTopWidth) + x88(x87.borderBottomWidth)); return x89; } AdfAgent.prototype.setOuterWidth= function( x90, x91) { var x92=this.getComputedStyle(x90); if(this.getBoxSizing(x90,x92)=="border-box") { x90.style.width=x91 +"px"; return; } var x93=AdfAgent.getCSSLengthAsInt; var x94=x91 - x93(x92.paddingLeft) - x93(x92.paddingRight) - x93(x92.marginLeft) - x93(x92.marginRight); if (x90.tagName.toUpperCase()!="TABLE") x94-=(x93(x92.borderLeftWidth) + x93(x92.borderRightWidth)); if (x94<0) x94=0; x90.style.width=x94 + "px"; } AdfAgent.prototype.getDomForCSSPropertyName= function(x95) { var x96=this.GetCssToDomPropertyNameMap(); var x97=x96[x95]; if (x97) return x97; var x98=x95.split('-'); len=x98.length; var x99=x98[0]; for(var x100=1;x100=x205.zIndex)|| (!x212&&x205.zIndex<1))) { var x213=x206; var x214=false; var x215=this.getElementTop(x210); if (x215<=x204) { var x216=x210.offsetHeight; var x217=(x216==0); if (x217||((x215 + x216)>=x204)) { var x218=this.getElementLeft(x210); if (x218<=x203) { var x219=x210.offsetWidth; var x220=(x219==0); if (x220||((x218 + x219)>=x203)) { x213=true; x214= !x220&& !x217; if (this.pointInElementChrome(x210,x203,x204)) { x214=true; x205.done=true; } if (x214) { x205.target=x210; } }}}} if (x213&& !x205.done) { var x221; var x222; if (!x214) { x222=x205.target; x221=x205.zIndex; } if (x212) x205.zIndex=x212; this._elementFromPagePointImpl(x210, x203, x204, x205, x206, null,x208, x209); if (!x214&&(x222==x205.target)) { x205.zIndex=x221; } }}}} x210=x210.nextSibling; } } AdfAgent.prototype.getNodeName= function (x223) { return x223.nodeName; } AdfAgent.prototype.getLocalName= function (x224) { return x224.localName; } AdfAgent.prototype.getNodeXml= function (x225) { var x226= new XMLSerializer(); var x227=x226.serializeToString(x225); return x227; } AdfAgent.prototype.getPrefix= function (x228) { return x228.prefix; } AdfAgent.prototype.isElementHTML= function(x229) { AdfAssert.assertDomNode(x229); return true; } AdfAgent.prototype.setCssFloat= function(x230,x231) { x230.style.cssFloat=x231; } AdfAgent.prototype.getAttributeName= function (x232) { return x232.name; } AdfAgent.prototype.getAttribute= function (x233,x234) { return x233.getAttribute(x234); } AdfAgent.prototype.isAttributeSpecified= function (x235) { return x235.specified; } AdfAgent.prototype.replaceNode= function (x236,x237) { return x237.parentNode.replaceChild(x236,x237); } AdfAgent.prototype.setAttribute= function( x238, x239, x240) { var x241=x238[x239]; if (x241==undefined|| typeof(x241)!="boolean"|| x240!="false") { x238.setAttribute(x239,x240); } } AdfAgent.prototype.getIntAttribute= function( x242, x243, x244) { AdfAssert.assertDomElement(x242); if (x244==undefined) x244=null; if (x242.hasAttribute(x243)) { var x245=x242.getAttribute(x243); x245=parseInt(x245); if (isNaN(x245)) { x245=x244; AdfLogger.LOGGER.warning("The value of attribute named ", x243, " cannot be converted into an integer."); } } else { x245=x244; } return x245; } AdfAgent.prototype.getBooleanAttribute= function( x246, x247, x248) { AdfAssert.assert(x246); if (x248==undefined) x248=null; var x249=x246.getAttribute(x247); if (x249==null) x249=x248; else if (x249=="true") x249=true; else if (x249=="false") x249=false; else { x249=x248; AdfLogger.LOGGER.warning("The value of attribute named ", x247, " cannot be converted into a boolean."); } return x249; } AdfAgent.prototype.enableUserSelect= function(x250) { } AdfAgent.prototype.disableUserSelect= function(x251) { } AdfAgent.prototype.createTouchMoveManager= function( x252, x253, x254) { return new AdfTouchMoveManager(x252,x253,x254); } AdfAgent.prototype.stopPropagation= function(x255) { x255.stopPropagation(); } AdfAgent.prototype.preventDefault= function(x256) { x256.preventDefault(); } AdfAgent.prototype.eatEvent= function(x257) { this.stopPropagation(x257); this.preventDefault(x257); } AdfAgent.prototype.getMousePosition= function(x258) { return {x:x258.pageX,y:x258.pageY}; } AdfAgent.prototype.isEventInElement= function(x259,x260) { var x261=this.getMousePosition(x259); var x262=this.getElementPosition(x260); var x263=x261.x; var x264=x262.x; if ((x263>=x264)&&(x263<=(x264 + x260.offsetWidth))) { var x265=x261.y; var x266=x262.y; if ((x265>=x266)&&(x265<=(x266 + x260.offsetHeight))) { return true; } } return false; } AdfAgent.prototype.getElementPosition= function(x267) { var x268=x267.ownerDocument.body; var x269=x267.offsetParent; var x270=x267.offsetLeft; var x271=x267.offsetTop; if (this.getComputedStyle(x267).position=="absolute") { x271-=x268.offsetTop; } var x272=AdfAgent.getCSSLengthAsInt; while(x269) { x267=x269; x270+=x267.offsetLeft; x271+=x267.offsetTop; if (x267!=x268) { var x273=this.getComputedStyle(x267); x270+=x272(x273.borderLeftWidth); x271+=x272(x273.borderTopWidth); x270-=x267.scrollLeft; x271-=x267.scrollTop; } x269=x269.offsetParent; } return {x:x270,y:x271}; } AdfAgent.prototype.isMouseEvent= function(x274) { return (AdfAgent._MOUSE_EVENTS[x274.type]!=undefined) } AdfAgent.prototype.isChromeEvent= function(x275) { return false; } AdfAgent.prototype.pointInElementChrome= function(x276,x277,x278) { return false; } AdfAgent.prototype.cloneEvent= function(x279,x280) { if (this.isMouseEvent(x279)) { var x281=x279.type; newEvent=this._copyMouseEvent(x279,x281,x280); var x282=(x280)?x280:x279.target; var x283=x282.ownerDocument; x283.addEventListener(x281,this.stopPropagation,true); x282.dispatchEvent(newEvent); x283.removeEventListener(x281,this.stopPropagation,true); return newEvent; } else { return x279; } } AdfAgent.prototype.copyEvent= function(x284) { if (this.isMouseEvent(x284)||x284.type=="contextmenu") { var x285=x284.type; newEvent=this._copyMouseEvent(x284,x285); return newEvent; } else { return x284; } } AdfAgent.prototype._copyMouseEvent= function(x286,x287,x288) { var x289=(x288)?x288:x286.target; var x290=x289.ownerDocument; var x291=x290.createEvent("MouseEvents"); x291.initMouseEvent(x287, x286.bubbles, x286.cancelable, x290.contentWindow, x286.detail, x286.screenX, x286.screenY, x286.clientX, x286.clientY, x286.ctrlKey, x286.altKey, x286.shiftKey, x286.metaKey, x286.button, x286.relatedTarget); return x291; } AdfAgent.prototype.dispatchEvent= function(x292,x293) { return x292.dispatchEvent(x293); } AdfAgent.prototype.checkMouseOutEvent= function(x294,x295) { var x296=false; var x297=this.getElementPosition(x294); var x298=this.getMousePosition(x295); x296=x298.x>x297.x&& x298.xx297.y&& x298.yx345.offsetWidth)|| (x345.scrollHeight>x345.offsetHeight)) { return true; } var x346=this._document.body; if ((x345==x346)||(x345==this._document)) return false; var x347=x345.offsetParent; var x348=x345.offsetLeft; var x349=x345.offsetTop; var x350=x345.offsetWidth; var x351=x345.offsetHeight; var x352=this.getComputedStyle(x345); var x353=AdfAgent.getCSSLengthAsInt(x352.paddingLeft); var x354=AdfAgent.getCSSLengthAsInt(x352.paddingRight); var x355=AdfAgent.getCSSLengthAsInt(x352.paddingTop); var x356=AdfAgent.getCSSLengthAsInt(x352.paddingBottom); x349+=x355; x348+=x353; x351-=(x355 + x356); x350-=(x353 + x354); var x357=2; var x358=x345; var x359=(x352.position=="absolute"); while(x347&&(x347!=x346)) { if(x347.clientHeight>0&&x347.clientWidth>0) { if ((x348 + x357(x347.scrollLeft + x347.clientWidth))|| ((x349 + x351 - x357)>(x347.scrollTop + x347.clientHeight))) { if(!x359||(this.getComputedStyle(x347).overflow!="visible")) return true; } } x358=x347; var x360; var x361; x352=this.getComputedStyle(x358); if(x352.position=="absolute") { x360=AdfAgent.getCSSLengthAsInt(x352.left); x361=AdfAgent.getCSSLengthAsInt(x352.top); x359=true; } else { x360=x358.offsetLeft; x361=x358.offsetTop; x359=false; } x348+=x360 - x358.scrollLeft; x349+=x361 - x358.scrollTop; x347=x347.offsetParent; } return false; } AdfAgent.prototype.getPreferredKeyEventForRepetition= function() { if (this.getOS()==AdfAgent.MAC_OS) { return AdfUIInputEvent.KEY_PRESS_EVENT_TYPE; } return AdfUIInputEvent.KEY_DOWN_EVENT_TYPE; } AdfAgent.prototype.isDisabledOptionSupported= function() { return true; } AdfAgent.prototype.resizeStretchedChild= function( x362, x363 ) { } AdfAgent.prototype.resizeStretchedElement= function( x364, x365, x366 ) { } AdfAgent.prototype.prepareStretchedChild= function( x367, x368 ) { AdfAssert.assert((x368!=null),"parent padding not specified"); var x369=x367.style; x369.position="absolute"; x369.width="auto"; x369.height="auto"; x369.left=x368; x369.top=x368; x369.bottom=x368; x369.right=x368; } AdfAgent.prototype.repositionStretchedElement= function( x370, x371, x372, x373, x374) { if (x370) { var x375=x370.style; if (x371) x375.top=x371; if (x373) x375.left=x373; if (x372) { x375.height="auto"; x375.bottom=x372; } if (x374) { x375.width="auto"; x375.right=x374; } } } AdfAgent.prototype.isEqualIcon= function(x376,x377) { return (x376.parentNode.innerHTML==x377.parentNode.innerHTML); } AdfAgent.prototype.addOption= function( x378,x379,x380,x381,x382,x383,x384) { var x385=this._document.createElement("option"); x378.options.add(x385,x384); if (x380!=null) x385.value=x380; if (x379) AdfAgent.AGENT.setTextContent(x385,x379); x385.selected=x381; x385.disabled=x382; if (x383) x385.title=x383; } AdfAgent.prototype.removeIdsFromDomSubTree= function(x386) { var x387=x386.id; if ((x387!=null)&&(x387!="")) { x386.id=""; } var x388=x386.childNodes; for(var x389 in x388) { var x390=x388[x389]; if (x390.nodeType==1){ this.removeIdsFromDomSubTree(x390); } } } AdfAgent.prototype.modifyIdsInDomSubTree= function(x391,x392,x393) { var x394=x391.id; if ((x394!=null)&&(x394!="")) { x391.id=x392?x393 + "::" + x394: x394 + "::" + x393; } var x395=x391.childNodes; for(var x396 in x395) { var x397=x395[x396]; if (x397.nodeType==1){ this.modifyIdsInDomSubTree(x397,x392,x393); } } } AdfAgent.prototype.removeStyleProperty= function( x398,x399) { x398.style.removeProperty(x399); } AdfAgent.prototype.setTableRowHeight= function(x400,x401) { x400.style.height=x401 + 'px'; } AdfAgent.prototype.autoCompleteForm= function(x402) { } AdfAgent.prototype.getTableRows= function(x403) { return x403.rows; } AdfAgent.prototype.getTableRowCells= function(x404) { return x404.cells; } AdfAgent.prototype.getTableRow= function(x405,x406) { return x405.rows[x406]; } AdfAgent.prototype.parseXML= function(x407) { var x408=null; if (x407&&x407.length) { var x409= new DOMParser(); try { x408=x409.parseFromString(x407,"text/xml"); } catch(e) { } } return x408; } AdfAgent.prototype.cloneNode= function(x410) { return x410.cloneNode(true); } AdfAgent.prototype.clearSubtreeIds= function(x411) { if (x411.id) { x411.id=""; } if (x411.name) { x411.name=""; } var x412=x411.firstChild; while(x412) { if (x412.nodeType==1) this.clearSubtreeIds(x412); x412=x412.nextSibling; } } AdfAgent._parseFloatVersion= function (x413,x414) { var x415=x413.match(x414); if (x415) { var x416=x415[1]; if (x416) return parseFloat(x416); } return undefined; } AdfAgent._isGeckoAgentSupported= function (x417,x418) { if (x418<1.8||(x417.indexOf("firefox/")== -1)) return false; if (x418>1.8) return true; var x419=AdfAgent._parseFloatVersion(x417,/firefox\/(\d+[.]\d+)/); if (x419<2.0||x419==undefined) return false; if (x419>=2.1) return true; var x420=x417.match(/firefox\/(2([.]\d+){1,3})/); if (x420) { var x421=x420[1]; return x421!="2.0.0.1"; } return false; } AdfAgent._NATIVE_TO_COMPONENT_MAPPINGS= { "blur":AdfComponentEvent.BLUR_EVENT_TYPE, "focus":AdfComponentEvent.FOCUS_EVENT_TYPE, "focusin":AdfComponentEvent.FOCUS_EVENT_TYPE, "focusout":AdfComponentEvent.BLUR_EVENT_TYPE, "click":AdfUIInputEvent.CLICK_EVENT_TYPE, "dblclick":AdfUIInputEvent.DOUBLE_CLICK_EVENT_TYPE, "mousedown":AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE, "mouseup":AdfUIInputEvent.MOUSE_UP_EVENT_TYPE, "mousemove":AdfUIInputEvent.MOUSE_MOVE_EVENT_TYPE, "mouseover":AdfUIInputEvent.MOUSE_IN_EVENT_TYPE, "mouseout":AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE, "keydown":AdfUIInputEvent.KEY_DOWN_EVENT_TYPE, "keyup":AdfUIInputEvent.KEY_UP_EVENT_TYPE, "keypress":AdfUIInputEvent.KEY_PRESS_EVENT_TYPE, "contextmenu":AdfUIInputEvent.CONTEXT_MENU_EVENT_TYPE }; AdfAgent._REDISTRIBUTE_EVENTS=["click","dblclick","keydown","keypress","keyup", "mousedown","mousemove","mouseout","mouseover", "mouseup","focus","blur","contextmenu"]; AdfAgent.KEY_EVENTS=["keydown","keypress","keyup"]; AdfAgent._MOUSE_EVENTS={click:1,mousedown:1,mouseup:1,mouseover:1,mousemove:1,mouseout:1}; AdfAgent._CSS3_TO_CSS2_MAP= { "auto":"auto","default":"default","none":"default", "context-menu":"default", "help":"help","pointer":"pointer","progress":"wait", "wait":"wait","cell":"crosshair", "crosshair":"crosshair","text":"text","vertical-text":"text", "alias":"crosshair", "copy":"crosshair", "move":"move","no-drop":"move", "not-allowed":"move ", "e-resize":"e-resize","n-resize":"n-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","s-resize":"s-resize","se-resize":"se-resize","sw-resize":"sw-resize","w-resize":"w-resize","ew-resize":"e-resize", "ns-resize":"s-resize", "nesw-resize":"move", "col-resize":"e-resize", "row-resize":"s-resize", "all-scroll":"move", "inherit":"inherit"}; AdfAgent._CSS_TO_DOM_MAP= { }; AdfAgent._RESIZE_EVENTS=["DOMAttrModified","DOMSubtreeModified"]; function AdfTouchMoveManager(x0,x1,x2) { this.Init(x0,x1,x2); } AdfObject.createSubclass(AdfTouchMoveManager); AdfTouchMoveManager.prototype.Init= function(x0,x1,x2) { AdfTouchMoveManager.superclass.Init.call(this); } AdfTouchMoveManager.prototype.unregister= function() { } function AdfNavigationHistoryAgent() { this.Init(); } AdfObject.createSubclass(AdfNavigationHistoryAgent); AdfNavigationHistoryAgent.InitClass= function() { this._STATE_SEPARATOR='@'; } AdfNavigationHistoryAgent.prototype.Init= function() { AdfNavigationHistoryAgent.superclass.Init.call(this); this._loadCounter=0; } AdfNavigationHistoryAgent.getInstance= function() { if (AdfNavigationHistoryAgent._instance==undefined) { var x0=AdfAgent.AGENT; var x1=x0.getPlatform(); switch(x1) { case AdfAgent.GECKO_PLATFORM: AdfNavigationHistoryAgent._instance= new AdfGeckoNavigationHistoryAgent(); break; case AdfAgent.IE_PLATFORM: if (x0.getVersion()>7) { AdfNavigationHistoryAgent._instance= new AdfIE8NavigationHistoryAgent(); } else { AdfNavigationHistoryAgent._instance= new AdfIENavigationHistoryAgent(); } break; case AdfAgent.WEBKIT_PLATFORM: AdfNavigationHistoryAgent._instance= new AdfSafariNavigationHistoryAgent(); break; default: AdfLogger.LOGGER.severe("Browser history management is not supported on this platform"); break; } } return AdfNavigationHistoryAgent._instance; } AdfNavigationHistoryAgent.prototype.initialize= function(x2,x3) { this._defaultViewId=x2; this._currentViewId=x2; this._initialized=true; this._currentParams=this._defaultParams=this._getDefaultQueryParams(); if (x3) { this._currentParams=x3; this._updateHash(this.GetViewInfoFromBrowserURI().id,x3,true); } } AdfNavigationHistoryAgent.prototype.isInitialized= function() { return (true==this._initialized); } AdfNavigationHistoryAgent.prototype.setCurrentPage= function(x4,x5,x6) { this._currentViewId=x4; if (x5==undefined) x5=null; this._currentParams=x5; if (x6!=undefined&&x6!=null&&x6==this._pendingLoadId) { this.setQueryString(x5,true); this._pendingViewId=null; this._pendingParams=null; this._pendingLoadId=null; } if (!x6) { this.AddHistoryEntry(x4,x5); } } AdfNavigationHistoryAgent.prototype.setQueryString= function(x7,x8) { if (x7==undefined) x7=null; var x9=this.GetViewInfoFromBrowserURI(); var x10=x9.id; if (x9.params!=x7) { this._currentParams=x7; this.SetQueryStringImpl(x10,x7,x8); } } AdfNavigationHistoryAgent.prototype.startTrackingURI= function(x11) { this._callbackObj=x11; this.ValidateCurrentView(); } AdfNavigationHistoryAgent.prototype.dispose= function() { } AdfNavigationHistoryAgent.prototype.SetViewIdOnURI= function(x12,x13) { var x14=this.GetViewInfoFromBrowserURI(); if (x14.id!=x12||x14.params!=x13) { this._updateHash(x12,x13,false); return true; } else { return false; } } AdfNavigationHistoryAgent.prototype.AddHistoryEntry= function(x15,x16) { return this.SetViewIdOnURI(x15,x16); } AdfNavigationHistoryAgent.prototype.ValidateCurrentView= function(x17,x18) { if (!x17) { var x19=this.GetViewInfoFromBrowserURI(); x17=x19.id; x18=x19.params; } if (x17!=this._currentViewId||x18!=this._currentParams) { return this._loadView(x17,x18); } else { return null; } } AdfNavigationHistoryAgent.prototype.GetViewInfoFromBrowserURI= function() { var x20=this.GetDomWindow(); var x21= new Object(); x21.params=this._getDefaultQueryParams(); var x22=x20.location.href; var x23=x22.indexOf('#'); var x24=null; if (x23>0) { var x25=x22.substring(x23 + 1); if (x25&&x25.length>0) { x25=decodeURIComponent(x25); if (x25.charAt(0)==AdfNavigationHistoryAgent._STATE_SEPARATOR) { x21.params=x25.substring(1); } else if (x25.indexOf(AdfNavigationHistoryAgent._STATE_SEPARATOR)<0) { x24=x25; } else { var x26=x25.split(AdfNavigationHistoryAgent._STATE_SEPARATOR); x24=x26[0]; x21.params=x26[1]; } if (x21.params=="") x21.params=null; } } if (!x24||x24.length<1) { x24=this._defaultViewId; } x21.id=x24; return x21; } AdfNavigationHistoryAgent.prototype.GetDomWindow= function() { return AdfPage.PAGE.getDomWindow(); } AdfNavigationHistoryAgent.prototype.GetDomDocument= function() { return AdfPage.PAGE.getDomDocument(); } AdfNavigationHistoryAgent.prototype.SetQueryStringImpl= function(x27,x28,x29) { this._updateHash(x27,x28,x29); } AdfNavigationHistoryAgent.prototype._getDefaultQueryParams= function() { var x30=this.GetDomWindow(); var x31=null; var x32=x30.location.search; if (x32&&x32.length>0) x31=x32; return x31; } AdfNavigationHistoryAgent.prototype._updateHash= function(x33,x34,x35) { var x36=(x33==this._defaultViewId)?'':x33; if (x34!=this._defaultParams) { x36+=AdfNavigationHistoryAgent._STATE_SEPARATOR; if (x34!=undefined&&x34!=null&&x34.length>0) x36+=x34; } x36='#' + encodeURIComponent(x36); if (!x35) this.GetDomWindow().location.hash=x36; else this.GetDomWindow().location.replace(x36); } AdfNavigationHistoryAgent.prototype._loadView= function(x37,x38) { if (!this._callbackObj|| (x37==this._pendingViewId&&x38==this._pendingParams)) { return null; } this._pendingViewId=x37; this._pendingParams=x38; if (x37==this._defaultViewId&&x38==this._defaultParams) { x37=null; } this._pendingLoadId=this._loadCounter++; this._callbackObj.loadView(x37,x38,this._pendingLoadId); return {id:this._pendingViewId,params:this._pendingParams}; } function AdfOperaLogWriter() { this.Init(); } AdfObject.createSubclass(AdfOperaLogWriter,AdfLogWriter); AdfOperaLogWriter.prototype.PublishImpl= function( x0 ) { this.CheckIfClosed(); AdfAssert.assert(x0,"null logRecord"); opera.postError(this.FormatLogRecord(x0) + "\n\n"); } function AdfOperaAgent(x0) { this.Init(x0); } AdfObject.createSubclass(AdfOperaAgent,AdfAgent); AdfOperaAgent.prototype.Init= function(x0) { var x1=navigator.userAgent.toLowerCase(); var x2=x1.match(/^opera\s*\/?\s*(\d+\.\d+)/); var x3=7.54; if (x2&&(x2.length>=2)) x3=parseFloat(x2[1]); AdfOperaAgent.superclass.Init.call(this, AdfAgent.OPERA_PLATFORM, AdfAgent.guessOS(), x3, x0); } AdfOperaAgent.prototype.CreateUIInputEvent= function( x4, x5, x6) { return new AdfIEUIInputEvent(x4,x5,x6); } AdfOperaAgent.prototype.isLeftButton= function(x7) { return this.getDomWindow().event.button==1; } AdfOperaAgent.prototype.preventDefault= function(x8) { x8.returnValue=false; } AdfOperaAgent.prototype.CreateNativeLogWriter= function() { return new AdfOperaLogWriter(); } function AdfSafariLogWriter( x0, x1){ AdfAssert.assert(window.console&&window.console.log,"Safari console logger not installed"); AdfSafariLogWriter._originalAssertionFailed=AdfAssert.assertionFailed; AdfAssert.assertionFailed=AdfSafariLogWriter._assertionHook; this.Init(x0,x1); } AdfObject.createSubclass(AdfSafariLogWriter,AdfLogWriter); AdfSafariLogWriter.prototype.Init= function(x0,x1) { AdfSafariLogWriter.superclass.Init.call(this,x0,x1); this._errorLogWriter=(AdfSafariLogWriter.WRITE_ERRORS_TO_CONSOLE) ? new AdfConsoleLogWriter(x0,x1) :false; this._mobile=(navigator.userAgent.toLowerCase().indexOf("mobile")!= -1); } AdfSafariLogWriter.prototype.PublishImpl= function(x2) { this.CheckIfClosed(); AdfAssert.assert(x2,"null logRecord"); var x3=this._errorLogWriter; var x4=x2[AdfLogRecord.ERROR_FIELD]; if (x4&&x3) { x3.publish(x2); return; } var x5=window.console; var x6=x2[AdfLogRecord.LEVEL_FIELD]; var x7=(x6>=AdfLogger.SEVERE) ?(x5.error?x5.error:x5.log) :(x6>=AdfLogger.WARNING) ?(x5.warn?x5.warn:x5.log) :(x6>=AdfLogger.INFO) ?(x5.info?x5.info:x5.log) :(x5.debug?x5.debug:x5.log); var x8=x2[AdfLogRecord.MESSAGE_FIELD]; var x9=x2[AdfLogRecord.WHEN_FIELD]; if (AdfAgent.AGENT.getVersion()>=527) { if (x4) { x7.call(x5, "Message: %s\nError: %o\nWhen: %o", x8, x4, x9); } else { x7.call(x5,"Message: %s\nWhen: %o",x8,x9); } } else { var x10; if (x4) { x10="Message: " + x8 + "\nError: " + x4 + "\nWhen: " + x9; } else { x10="Message: " + x8 + "\nWhen: " + x9; } if (this._mobile) { var x11=x10.split("\n"); var x12=[]; var x13=35; for(var x14=0;x14x13) { var x16=Math.ceil(x15.length/x13); for(var x17=0;x171) { var x20=Math.ceil(x19/2); var x21=0; for(var x22=0;x22x19 - x29) { x20.push(x22); } } if (x20.length==this._touchCount) { var x31=0; var x32=0; var x33; for(x33=0;x33x35|| Math.abs(x22["dy"] - x32)>x35) { x34=false; break; } } if (x34) { x17.preventDefault(); if (x31!=0||x32!=0) { var x36=window.innerWidth/window.outerWidth; this._handlerCallback(x31*x36,x32*x36); } } for(x21 in this._touchMap) { this._touchMap[x21]["t"]=0; } } } } function AdfSafariNavigationHistoryAgent() { this.Init(); } AdfObject.createSubclass(AdfSafariNavigationHistoryAgent,AdfNavigationHistoryAgent); AdfSafariNavigationHistoryAgent.InitClass= function() { this._TIMER_INTERVAL=300; } AdfSafariNavigationHistoryAgent.prototype.startTrackingURI= function(x0) { AdfSafariNavigationHistoryAgent.superclass.startTrackingURI.call(this,x0); this._timerId= this.GetDomWindow().setInterval( AdfSafariNavigationHistoryAgent._checkURI, AdfSafariNavigationHistoryAgent._TIMER_INTERVAL); } AdfSafariNavigationHistoryAgent.prototype.dispose= function() { if (this._timerId) this.GetDomWindow().clearInterval(this._timerId); } AdfSafariNavigationHistoryAgent._checkURI= function() { AdfNavigationHistoryAgent.getInstance().ValidateCurrentView(); } function AdfPage() { } AdfPage._NEW_WINDOW_NAME="RichPageMain"; AdfPage.CREATE_VIEW_PHASE="createViewPhase"; AdfPage.UPDATE_VIEW_PHASE="updateViewPhase"; AdfPage.DELIVER_EVENTS_PHASE="deliverEventsPhase"; AdfPage.WAITING_FOR_USER_INPUT_PHASE="waitingForUserInputPhase"; AdfPage._FOR_CONTAINER_PREFIX="afr::msgFor"; AdfPage.EDITABLE_SUBTREE_PROPERTY="editableSubtree"; AdfPage.SELECTED_EDITING_COMPONENTS_PROPERTY="selectedEditingComponents"; AdfPage.EDITED_COMPONENT_PROPERTY="editedComponent"; AdfPage.ACTIVE_COMPONENT_PROPERTY="activeComponent"; AdfPage.PAGE=null; AdfObject.createSubclass(AdfPage); AdfPage.prototype.setPageProperty= function(x0,x1) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.getPageProperty= function(x2) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.setDefaultMessageHandlerComponentId= function(x3,x4) { } AdfPage.prototype.getDefaultMessageHandlerComponentId= function() { } AdfPage.prototype.getMessageHandlerSlaveComponentId= function() { } AdfPage.prototype.getPhase= function() { return this._phase; } AdfPage.prototype.addPartialTargets= function(x5) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.findComponent= function(x6) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.findComponentByAbsoluteId= function(x7) { AdfAssert.assertNonEmptyString(x7); return AdfUIComponent.__findComponent(":" + x7); } AdfPage.prototype.findComponentByAbsoluteLocator= function(x8) { AdfAssert.assertNonEmptyString(x8); return AdfUIComponent.__findComponentByLocator(x8); } AdfPage.prototype.GetChangedComponents= function() { if (this._changedComponentCount>0) { return this._changedComponents; } else { return null; } } AdfPage.prototype.addChangedComponent= function(x9) { AdfAssert.assertPrototype(x9,AdfUIComponent); var x10=this._changedComponents; var x11=x9.getClientId(); if (!(x11 in x10)) { x10[x11]=x9; this._changedComponentCount++; } } AdfPage.prototype.removeChangedComponent= function(x12) { AdfAssert.assertPrototype(x12,AdfUIComponent); var x13=this._changedComponents; var x14=x12.getClientId(); if (x14 in x13) { delete x13[x14]; this._changedComponentCount--; } } AdfPage.prototype.ClearChangesList= function() { if (this._changedComponentCount>0) { var x15=this._changedComponents; for(var x16 in x15) { x15[x16].clearChanges(); } this._changedComponents= new Object(); this._changedComponentCount=0; } } AdfPage.prototype.getLookAndFeel= function() { return this._lookAndFeel; } AdfPage.prototype.getActiveComponent= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.addComponents= function(x17) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.getBaseResourceUrl= function() { return this._baseResourceUrl; } AdfPage.prototype.setBaseResourceUrl= function(x18) { this._baseResourceUrl=x18; } AdfPage.prototype.getTwoDigitYearStart= function() { return this._twoDigitYearStart; } AdfPage.prototype.setTwoDigitYearStart= function(x19) { this._twoDigitYearStart=x19; } AdfPage.prototype.getTzOffsetMinutes= function() { return this._tzOffsetMinutes; } AdfPage.prototype.setTzOffsetMinutes= function(x20) { this._tzOffsetMinutes=x20; } AdfPage.prototype.getFailedConnectionText= function() { return this._failedConnectionText; } AdfPage.prototype.setFailedConnectionText= function(x21) { this._failedConnectionText=x21; } AdfPage.prototype.registerLoadingComponent= function(x22) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.unregisterLoadingComponent= function(x23) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.showPageProcessingIndicator= function(x24) { } AdfPage.prototype.Init= function(x25) { AdfAssert.assertPrototype(x25,AdfLookAndFeel); AdfPage.superclass.Init.call(this); this._lookAndFeel=x25; this._phase=AdfPage.CREATE_VIEW_PHASE; this._changedComponents= new Object(); this._changedComponentCount=0; var x26=AdfAgent.AGENT.createDefaultLogWriter(); var x27=AdfLogger.LOGGER; var x28= new AdfLogger(x27.getName(),x26,x27.getLevel()); x28.register(); AdfLogger.LOGGER=x28; this._localeContext= new AdfLocaleContext(); } AdfPage.prototype.SetPhase= function(x29) { AdfAssert.assertString(x29); this._phase=x29; } AdfPage.prototype.getLocaleContext= function() { return this._localeContext; } AdfPage.prototype.getDnDContext= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.queueEventToServer= function(x30) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.getActiveComponentId= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.addPropertyChangeListener= function(x31,x32) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.removePropertyChangeListener= function(x33,x34) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.getSelectedEditingComponents= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.setSelectedEditingComponents= function(x35) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.getEditableSubtree= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.setEditableSubtree= function(x36) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.setEditableSubtreeFilter= function(x37,x38) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.getEditedComponent= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.setEditedComponent= function(x39,x40) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.getResourceURL= function( x41) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.Dispose= function() { AdfLogger.LOGGER.getLogWriter().close(); AdfPage.PAGE=null; } AdfPage.prototype.addMessage= function(x42,x43,x44) { } AdfPage.prototype.showMessages= function(x45) { } AdfPage.prototype.getMessages= function(x46) { } AdfPage.prototype.getAllMessages= function() { } AdfPage.prototype.getClientIdsWithMessages= function() { } AdfPage.prototype.clearMessages= function(x47) { } AdfPage.prototype.clearAllMessages= function() { } AdfPage.prototype.hasMessages= function(x48) { } AdfPage.prototype.addBusyStateListener= function(x49,x50) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.removeBusyStateListener= function(x51,x52) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.registerResizeNotifyComponent= function(x53) { } AdfPage.prototype.unregisterResizeNotifyComponent= function(x54) { } AdfPage.prototype.doResizeNotify= function(x55) { } AdfPage.prototype.isScreenReaderMode= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.isSynchronizedWithServer= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.isAnimationEnabled= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.isPortlet= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.setHelpWindowName= function (x56) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.launchHelpWindow= function (x57) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.localNavigate= function(x58) { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.checkUncommittedData= function() { AdfAssert.failedInAbstractFunction(); } AdfPage.prototype.getSessionIdentifier= function() { return null; } AdfPage.prototype.getResponseIdentifier= function() { return null; } AdfPage.prototype.shouldTracePPRRequestId= function() { return false; } function AdfLookAndFeel() { this.Init(); } AdfObject.createSubclass(AdfLookAndFeel); AdfLookAndFeel.prototype.getPeer= function(x0) { AdfAssert.failedInAbstractFunction(); } AdfLookAndFeel.prototype.getTranslatedString= function(x1) { AdfAssert.failedInAbstractFunction(); } AdfLookAndFeel.prototype.getSkinProperty= function(x2) { AdfAssert.failedInAbstractFunction(); } AdfLookAndFeel.prototype.getIcon= function(x3) { AdfAssert.failedInAbstractFunction(); } AdfLookAndFeel.prototype.createPage= function() { return new AdfPage(); } AdfLookAndFeel.prototype.registerPeerConstructor= function( x4, x5 ) { AdfAssert.failedInAbstractFunction(); } function AdfKeyStroke( x0, x1, x2) { this.Init(x0,x1,x2); } AdfObject.createSubclass(AdfKeyStroke); AdfKeyStroke.SHIFT_MASK=1<<0; AdfKeyStroke.CTRL_MASK=1<<1; AdfKeyStroke.META_MASK=1<<2; AdfKeyStroke.ALT_MASK=1<<3; AdfKeyStroke.BACKSPACE_KEY=8; AdfKeyStroke.TAB_KEY=9; AdfKeyStroke.ALT_KEY=18; AdfKeyStroke.ARROWDOWN_KEY=40; AdfKeyStroke.ARROWUP_KEY=38; AdfKeyStroke.ARROWRIGHT_KEY=39; AdfKeyStroke.ARROWLEFT_KEY=37; AdfKeyStroke.ESC_KEY=27; AdfKeyStroke.ENTER_KEY=13; AdfKeyStroke.SPACE_KEY=32; AdfKeyStroke.PAGEUP_KEY=33; AdfKeyStroke.PAGEDOWN_KEY=34; AdfKeyStroke.END_KEY=35; AdfKeyStroke.HOME_KEY=36; AdfKeyStroke.INSERT_KEY=45; AdfKeyStroke.DELETE_KEY=46; AdfKeyStroke.A_KEY=65; AdfKeyStroke.C_KEY=67; AdfKeyStroke.M_KEY=77; AdfKeyStroke.P_KEY=80; AdfKeyStroke.R_KEY=82; AdfKeyStroke.V_KEY=86; AdfKeyStroke.W_KEY=87; AdfKeyStroke.X_KEY=88; AdfKeyStroke.F1_KEY=112; AdfKeyStroke.F2_KEY=113; AdfKeyStroke.F3_KEY=114; AdfKeyStroke.F4_KEY=115; AdfKeyStroke.F5_KEY=116; AdfKeyStroke.F6_KEY=117; AdfKeyStroke.F7_KEY=118; AdfKeyStroke.F8_KEY=119; AdfKeyStroke.F9_KEY=120; AdfKeyStroke.F10_KEY=121; AdfKeyStroke.F11_KEY=122; AdfKeyStroke.F12_KEY=123; AdfKeyStroke.InitClass= function() { this._MODIFIER_STRINGS= new Array(16); this._MODIFIER_DISPLAY_STRINGS= new Array(16); this._CACHE= new Object(); var x0= [ "BACK_SPACE",AdfKeyStroke.BACKSPACE_KEY, "CLEAR",12, "SHIFT",16, "CONTROL",17, "ALT",18, "CAPS_LOCK",20, "TAB",AdfKeyStroke.TAB_KEY, "DOWN",AdfKeyStroke.ARROWDOWN_KEY, "UP",AdfKeyStroke.ARROWUP_KEY, "RIGHT",AdfKeyStroke.ARROWRIGHT_KEY, "LEFT",AdfKeyStroke.ARROWLEFT_KEY, "ESCAPE",AdfKeyStroke.ESC_KEY, "ENTER",AdfKeyStroke.ENTER_KEY, "SPACE",AdfKeyStroke.SPACE_KEY, "PAGE_UP",AdfKeyStroke.PAGEUP_KEY, "PAGE_DOWN",AdfKeyStroke.PAGEDOWN_KEY, "END",AdfKeyStroke.END_KEY, "HOME",AdfKeyStroke.HOME_KEY, "INSERT",AdfKeyStroke.INSERT_KEY, "DELETE",AdfKeyStroke.DELETE_KEY, "F1",AdfKeyStroke.F1_KEY, "F2",AdfKeyStroke.F2_KEY, "F3",AdfKeyStroke.F3_KEY, "F4",AdfKeyStroke.F4_KEY, "F5",AdfKeyStroke.F5_KEY, "F6",AdfKeyStroke.F6_KEY, "F7",AdfKeyStroke.F7_KEY, "F8",AdfKeyStroke.F8_KEY, "F9",AdfKeyStroke.F9_KEY, "F10",AdfKeyStroke.F10_KEY, "F11",AdfKeyStroke.F11_KEY, "F12",AdfKeyStroke.F12_KEY ]; var x1= new Array(); for(var x2=x0.length - 1;x2>=0;x2--) { var x3=x0[x2]; x2--; var x4=x0[x2]; x1[x3]=x4; x1[x4]=x3; } this._KEYCODE_MAPPINGS=x1; this._SHIFT_MODIFIER="shift"; this._CTRL_MODIFIER="ctrl"; this._META_MODIFIER="meta"; this._ALT_MODIFIER="alt"; var x5= new Object(); x5[this._SHIFT_MODIFIER]=this.SHIFT_MASK; x5[this._CTRL_MODIFIER]=this.CTRL_MASK; x5[this._META_MODIFIER]=this.META_MASK; x5[this._ALT_MODIFIER]=this.ALT_MASK; this._MODIFIER_NAME_TO_FLAG=x5; } AdfKeyStroke.prototype.Init= function( x6, x7, x8) { AdfAssert.assertNumber(x6); AdfAssert.assertNumber(x7); AdfAssert.assertString(x8); AdfKeyStroke.superclass.Init.call(this); this._keyCode=x6; this._modifiers=x7; this._stringForm=x8; } AdfKeyStroke.prototype.getKeyCode= function() { return this._keyCode; } AdfKeyStroke.prototype.getModifiers= function() { return this._modifiers; } AdfKeyStroke._getModifierString= function(x9) { AdfAssert.assertNumber(x9); var x10=AdfKeyStroke._MODIFIER_STRINGS; var x11=x10[x9]; if (x11==null) { var x12= new Array(); if ((x9&AdfKeyStroke.SHIFT_MASK)!=0) { x12.push(AdfKeyStroke._SHIFT_MODIFIER); } if ((x9&AdfKeyStroke.CTRL_MASK)!=0) { x12.push(AdfKeyStroke._CTRL_MODIFIER); } if ((x9&AdfKeyStroke.META_MASK)!=0) { x12.push(AdfKeyStroke._META_MODIFIER); } if ((x9&AdfKeyStroke.ALT_MASK)!=0) { x12.push(AdfKeyStroke._ALT_MODIFIER); } x11=x12.join(' '); x10[x9]=x11; } return x11; } AdfKeyStroke._getModifierDisplayString= function(x13) { AdfAssert.assertNumber(x13); var x14=AdfKeyStroke._MODIFIER_DISPLAY_STRINGS; var x15=x14[x13]; if (x15==null) { var x16=AdfAgent.AGENT; var x17= new Array(4); if ((x13&(AdfKeyStroke.SHIFT_MASK))!=0) { x17.push(x16.getModifierDisplayName(AdfKeyStroke.SHIFT_MASK)); } if ((x13&(AdfKeyStroke.CTRL_MASK))!=0) { x17.push(x16.getModifierDisplayName(AdfKeyStroke.CTRL_MASK)); } if ((x13&(AdfKeyStroke.META_MASK))!=0) { x17.push(x16.getModifierDisplayName(AdfKeyStroke.META_MASK)); } if ((x13&(AdfKeyStroke.ALT_MASK))!=0) { x17.push(x16.getModifierDisplayName(AdfKeyStroke.ALT_MASK)); } x15=x17.join(' '); x14[x13]=x15; } return x15; } AdfKeyStroke._getStringForm= function(x18,x19) { var x20=AdfKeyStroke._getModifierString(x19); var x21=AdfKeyStroke._getNameFromKeyCode(x18) if (x20.length==0) return x21; else return x20 + " " + x21; } AdfKeyStroke.prototype.toString= function() { return AdfKeyStroke.superclass.toString.call(this) + " " + this._stringForm; } AdfKeyStroke.prototype.toMarshalledString= function() { return this._stringForm; } AdfKeyStroke.getKeyStroke= function( x22, x23) { AdfAssert.assertNumber(x22); AdfAssert.assertNumber(x23); AdfObject.ensureClassInitialization(AdfKeyStroke); var x24=AdfKeyStroke._getStringForm(x22,x23); var x25=AdfKeyStroke._CACHE; var x26=x25[x24]; if (x26==null) { x26= new AdfKeyStroke(x22,x23,x24); x25[x24]=x26; } return x26; } AdfKeyStroke.getKeyStrokeFromMarshalledString= function(x27) { AdfAssert.assertString(x27); AdfObject.ensureClassInitialization(AdfKeyStroke); var x28=AdfKeyStroke._CACHE; var x29=x28[x27]; if (x29==null) { var x30=x27.split(' '); var x31=x30.length - 1; AdfAssert.assert(x31>=0); var x32=x30[x31]; var x33=AdfKeyStroke._KEYCODE_MAPPINGS[x32]; if (x33===undefined) x33=x32.charCodeAt(0); var x34=AdfKeyStroke._MODIFIER_NAME_TO_FLAG; var x35=0; var x36=false; for(var x37=0;x372) { var x22=[x21]; for(var x23=1;x23=0;x2--) { x0[x1[x2].toMarshalledString()]=true; } this._KEYSTROKE_OVERRIDES=x0; this._EDITABLE_STYLE="p_AFInlineEditable"; this._SELECTABLE_STYLE="p_AFInlineSelectable"; this._STATE_PARAM_NAME="javax.faces.ViewState"; this._STREAMING_IDS_PARAM="oracle.adf.view.rich.STREAM"; this._REMOVED_STREAMING_IDS_PARAM="oracle.adf.view.rich.NOSTREAM"; this._STREAMING_REQUEST_SENT=0; this._STREAMING_STARTED=1; this._STREAMING_COMPLETE=2; this._LAZY_FETCH_ID_PARAM="oracle.adf.view.rich.LAZY_FETCH"; this._RICH_UPDATE_FLAG="oracle.adf.view.faces.RICH_UPDATE"; this._NAVIGATION_WRAPPER_ID="afr::DocWrapper"; this._NAVIGATION_VIEW_ROOT="_afrNavViewRoot"; this._NAVIGATION_QUERY_PARAMS="_afrNavParams"; this._DELAYED_RESIZE_TIMEOUT=150; var x3=AdfKeyStroke.R_KEY; var x4=AdfKeyStroke.ALT_MASK|AdfKeyStroke.CTRL_MASK; this._ACTIVE_DATA_HOT_KEY=AdfKeyStroke.getKeyStroke(x3,x4); this._ACTIVE_DATA_HOT_KEY_TEXT="Ctrl+Alt+R"; this._DOCUMENT_STYLE_HOLDER="_afrStyleHolder"; this.PPR_NAVIGATION_ON=1; this.PPR_NAVIGATION_FORCE_PPR=2; this._PARSER_DIV_ID="_afrParserDiv"; this._BLOCKING_DIV_ID="_afBlockingDiv"; this._BLOCKING_OPACITY=0; } AdfDhtmlPage.TimeoutWarningWindowStates={ NONE:0, CANCEL:1, LAUNCHED:2 }; AdfDhtmlPage.PollingTimeoutStates={ NONE:0, STARTED:1 }; AdfDhtmlPage.prototype.Init= function(x5,x6) { AdfAssert.assertPrototype(x5,AdfLookAndFeel); AdfDhtmlPage.superclass.Init.call(this,x5); this._window=x6; this._document=x6.document; this._clientIdToComponentMap= new Object(); var x7=AdfLogger.LOGGER.getLogWriter(); if (AdfClientFileLogWriter.prototype.isPrototypeOf(x7)) { x7.setSessionId(AdfDhtmlPage._getCookie(this._document,"JSESSIONID")); } AdfDhtmlPage.PARTIAL_TARGETS_PARAM="oracle.adf.view.rich.RENDER"; this._eventQueue= new Array(); this._serverEventQueue= new Array(); this._noResponseEventQueue= new Array(); this._discreteEventQueue= new Array(); this._busyCounts={}; this._accessibilityMode=AdfDhtmlPage.DEFAULT_ACCESSIBILITY_MODE; this._portlet=false; this._animationEnabled=true; this._activeDomNode=null; this._inLayout=false; x6.onunload=this.createCallback(this.Dispose); x6.onresize=this.createCallback(this._handleResize); var x8=this.getDomDocument(); x8.ondragstart=this.createCallback(this._onDragStart); x8.onselectstart=this.createCallback(this._onSelectStart); this._dragStartX=0; this._dragStartY=0; this._dragLastX=0; this._dragLastY=0; var x9=this.createCallback(this._dragMouseMove); var x10=this.createCallback(this._dragMouseUp); var x11=this.createCallback(this._dragKeyDown); this._dragDropCallbacks={mousemove:x9, mouseup:x10, keydown:x11}; this._resizeNotifyTree= new Object(); this._resizeNotifyMap= new Object(); this._descendantResizeNotifyList= new Array(); this._keyStrokeToCallbackMap= new Object(); this._keyStrokeToCallbackContextMap= new Object(); this._pageProperties= new Object(); AdfDhtmlPage._timers= new Object(); AdfDhtmlPage._nextTimerId=1; this._selectedEditingComponents=null;this._editableSubtreeId=null this._editedComponentId=null this._inlineEditor=null; this._editableCallback=null; this._editableCallbackContext=null; this._notifyOfUnload=false; this._activeComponents= new Object(); this._autoPPRComponents= new Object(); this._startADSClientIds= new Object(); this._startADSClientIdCount=0; this._stopADSClientIds= new Array(); this._canReceiveActiveDataCount=1; this._stopGlobalActiveData(); this._defaultMessageKey="____GLOBAL_MESSAGES"; this._messages={}; this._delayedMessages={}; this._serverTimeDifference=0; this._isWindowClosing=false; this._lastPollTime=null; this._lastActiveDataActivityTime=0; this._reconnectRetries=0; this._restartInterval=AdfDhtmlPage._DEFAULT_ACTIVEDATA_CONFIG.restartInterval; this._maxReconnectionRetries=AdfDhtmlPage._DEFAULT_ACTIVEDATA_CONFIG.maxReconnectionRetries; this._reconnectWaitTime=AdfDhtmlPage._DEFAULT_ACTIVEDATA_CONFIG.reconnectWaitTime; this._latencyThreshold=AdfDhtmlPage._DEFAULT_ACTIVEDATA_CONFIG.latencyThreshold; this._transport=AdfDhtmlPage._DEFAULT_ACTIVEDATA_CONFIG.transport; this._pollingInterval=AdfDhtmlPage._DEFAULT_ACTIVEDATA_CONFIG.pollingInterval; this._keepAliveInterval=AdfDhtmlPage._DEFAULT_ACTIVEDATA_CONFIG.keepAliveInterval; this._pollingTimer=null; this._timeoutWarningWindowState=AdfDhtmlPage.TimeoutWarningWindowStates.NONE; this._pollingTimeoutState=AdfDhtmlPage.PollingTimeoutStates.NONE; this._pendingStreamingIDs= new Object(); this._documentClientId=null; this.__shouldTracePPRRequestId=false; this._perfProfileEnabled=x6._afrTimingPreLoadStart?true:false; this._perfProfileTimingEnabled=x6._afrTimingPreLoadTimingStart?true:false; this._positionBlockingGlassPaneCallback=this.createCallback(this._positionBlockingGlassPane); if (this._perfProfileEnabled||this._perfProfileTimingEnabled) { var x12= new AdfLogger('profiler',AdfAgent.AGENT.createDefaultLogWriter()); if (x12.getLevel()>AdfLogger.INFO) { x12.setLevel(AdfLogger.INFO); } AdfLogger.PROFILER_LOGGER=x12; AdfLogger.PROFILER_LOGGER.register(); } this._haveOutstandingPPRRequest=false; this._loadingComponents=[]; this._componentsUpdatedByPollEvent=null; } AdfDhtmlPage.prototype.isPageFullyLoaded= function() { return this.isSynchronizedWithServer(); } AdfDhtmlPage.prototype.isPageOnloadCalled= function() { return (this._initializationComplete); } AdfDhtmlPage.prototype.isSynchronizedWithServer= function() { this._throwSavedErrors(); try { if ((this.getPhase()!=AdfPage.WAITING_FOR_USER_INPUT_PHASE)||this._eventQueue.length!=0) return false; if (AdfDhtmlRichDialogService.isBusy()) return false; var x13=this.getDataTransferService(); if (x13&&(x13.getDTSState()==x13.constructor.STATE_READY)&& !x13.streamingResponsesOutstanding()){ return (this._initializationComplete&&this._serverEventQueue.length==0)&&(this._noResponseEventQueue.length==0)&&(this._discreteEventQueue.length==0)&&(this._partialTargets==null)&&(this._startADSClientIdCount==0)&&(this._windowEventHeaderMap==null)&& !this._partialRequestRedirect&& !this._inDeliverQueuedServerEvents&& !this._inDeliverQueuedEvents&& !this._waitingForDocumentUnload&&this._areComponentsLoaded();} } catch(e) { } return false; } AdfDhtmlPage.prototype.registerLoadingComponent= function(x14) { var x15=x14.getClientId(); AdfAssert.assert(AdfCollections.indexOf(this._loadingComponents,x15)== -1,"Component already registered"); this._loadingComponents.push(x15); } AdfDhtmlPage.prototype.unregisterLoadingComponent= function(x16) { AdfCollections.removeArrayValue(this._loadingComponents,x16.getClientId()); } AdfDhtmlPage.prototype._areComponentsLoaded= function() { var x17=this._loadingComponents; var x18=x17.length; for(var x19=0;x190) { var x60=this._partialTargets; if (x60==null) { x60= new Array(); this._partialTargets=x60; } for(var x61=0;x611) { this._descendantResizeNotifyListDirty=true; } this._descendantResizeNotifyList=x75; } AdfDhtmlPage.prototype.__unregisterDescendantResizeNotifyComponent= function(x79) { var x80=this._descendantResizeNotifyList; var x81=x80.length; for(var x82=0;x821) { x84.sort(AdfDhtmlPage._descendantResizeNotifyListComparator); } this._descendantResizeNotifyListDirty=false; } for(var x86=0;x86x91) { return -1; } else if (x90=0) { return x231.substr(x233 + x232.length); } else if (x231.charAt(0)=='/') { return "/" + x231; } else { return x231; } } AdfDhtmlPage._disposeIFrames= function(x234) { var x235=x234.getElementsByTagName("iframe"); for(var x236=x235.length-1;x236>=0;x236--) { var x237=x235[x236]; x237.parentNode.removeChild(x237); } } AdfDhtmlPage._forceGC= function(x238) { var x239= new Array(x238); for(var x240=0;x2400) { x285=x285.substring(0,x286); var x288=this.findComponent(x285); if (x288!=null&& x288 instanceof AdfRichSubform) { x287.push(x285); } x286=x285.lastIndexOf(":") } var x289=true; for(var x290=0;x2900) { x292=x292.substring(0,x286); var x288=this.findComponent(x292); if (x288!=null&& x288 instanceof AdfRichSubform) { x293=x292; break; } x286=x292.lastIndexOf(":") } var x294=true; if (x293!=null) { var x295=x287.length; if (x295>0) { for(subformIdIndex=0;subformIdIndex0); var x314=(x311.length)>0; var x315=(x312.length)>0; var x316=(this._startADSClientIdCount>0)&&(this._canReceiveActiveDataCount>0); var x317=this._stopADSClientIds; var x318=x316||(x317.length>0); var x319=AdfCollections.isEmpty(this._getClientStateMap()); var x320=(this._windowEventHeaderMap!=null); var x321=false; var x322=false; if (!x313&&(x310==null)&& !x318&& !x320) { if (!x315) { if (!x314) { this._inDeliverQueuedServerEvents=false; return; } else { x322=true; } } else { x309.push(x312.pop()); x313=true; } } var x323={}; var x324={}; var x325=true; var x326=null; var x327=AdfDhtmlPage._getFormElement; var x328=","; var x329=(0!=(this.getPPRNavigationOptions()&AdfDhtmlPage.PPR_NAVIGATION_FORCE_PPR)); var x330=false; if (this._endUserMonitoringEnabled&&x319) { var x331=AdfUserActivityInfo.getInstance(AdfUserActivityInfo._PRIMARY); } if (x310!=null) { var x332=x310.join(x328); x323[AdfDhtmlPage.PARTIAL_TARGETS_PARAM]=x332; if(this._endUserMonitoringEnabled&&x319) x331.setPprTargets(x332); x326=x327(this.findComponent(x310[0])); this._partialTargets=null; } var x333=(x313||x314||x315||(x323[AdfDhtmlPage.PARTIAL_TARGETS_PARAM]!=null)); var x334=this._getAndClearDeltas(x333); if (x334) { x323["oracle.adf.view.rich.DELTAS"]=x334; x322=false; } var x335=false; var x336=null; if (x322) { var x337=x311.pop(); x309.push(x337); x313=true; var x338=x308[x337]; x336=x338.getClientId(); } var x339= new Object(); if (x313) { var x340=[]; var x341=[]; while(x309.length>0) { var x342=x309.pop(); var x343=x342.getType(); x339[x343]=x343; var x344=x308[x342]; var x345=x344.getClientId(); if (!x321) x321=x342.isResponseAnnounced(); var x346=x327(x344); if (x326==null) { x326=x346; } if (x326==x346) { if (x345) { if (!(x345 in x324)) x340.push(x345); var x347=x342.getProperties(); var x348=x324[x345]; if (!x348) { x348=[]; x324[x345]=x348; } else if (x348[x343]) { continue; } x348[x343]=true; var x349=x342["_adfServerParams"]; if (x349) { x323=AdfCollections.copyInto(x349,x323); } x348.push(x347); if (this._endUserMonitoringEnabled&&x319) { var x350={eventType:x342.getType(), componentClientId:x345, componentType:x344.getComponentType(), componentDisplayName:x344.getAccessibleName()}; x331.setEventInfo(x350); } } else { AdfLogger.LOGGER.severe("Can not post events for ",component," because it has no clientId"); } var x351=x342.isPartial()&& !x342.isFullSubmitForced(); x335=x335||x342.IsUserInputPrevented(); if (x329&& !x351&&x343==AdfActionEvent.ACTION_EVENT_TYPE&& !x342.isFullSubmitForced()) { x351=true; x330=true; } x325&=x351; } else { AdfLogger.LOGGER.severe("Only submits to a single form are currently supported"); } var x352=x342.getRoot(); if (x352) { if (!(x341===null)) x341.push(x352.getClientId()); } else { x341=null; } } x323["event"]=x340.join(x328); } if (this._endUserMonitoringEnabled&&x319) { var x353= new Date().getTime().toString(); x331.setClientStartTime(x353); AdfUserActivityInfo.saveToSessionStorageByType(AdfUserActivityInfo._PRIMARY); x323["oracle.adf.view.rich.monitoring.UserActivityInfo"]= AdfUserActivityInfo.getMarshaledObject(); } for(var x354 in x324) { x323["event." + x354]=this._marshallMultipleEventParameters(x324[x354]); } var x355=null; if (x318) { x355= new Object(); if (x316) { var x356=this._startADSClientIds; this._startADSClientIds= new Object(); this._startADSClientIdCount=0; var x357= new Array(); var x358= new Array(); var x359=this._activeComponents; for(currClientId in x356) { if (x326==null) { x326=x327(this.findComponent(currClientId)); } x357.push(currClientId); x358.push( x359[currClientId].changeCount); } x355["oracle.adf.view.rich.START_ACTIVE_DATA"]=x357; x355["oracle.adf.view.rich.START_ACTIVE_DATA_EVENT_IDS"]=x358; } if (x317.length>0) { this._stopADSClientIds= new Array(); x355["oracle.adf.view.rich.STOP_ACTIVE_DATA"]=x317; } } if (x326==null) x326=this.getDomDocument().forms[0]; AdfAssert.assert(x326,"No form found; cannot postback"); if (x320) { if (!x355) x355= new Object(); x355=AdfCollections.copyInto(x355,this._windowEventHeaderMap); delete this._windowEventHeaderMap; if (x326&&(x355["Adf-Window-Opened"]=="true")) x326.action=this.getDomWindow().location.href; } x355=this._addPageId(x355); if (this.isPortlet()&&AdfDomUtils.getMultiPartForm(x326)!=null) { x325=false; } var x360=null; if (x322) { x360=x336; } else if (x325&&x341&&x341.length) { x360=x341.join(x328); } if (x360!=null) { x323["oracle.adf.view.rich.PROCESS"]=x360; } if (x325&&x330) { x323["oracle.adf.view.rich.PPR_FORCED"]="true"; } var x361= new Object(); x361._responseAnnounced=x321; x361._clientEventsSet=x339; if (x322) { x335=false; x361._noResponseExpected=true; } else if (x314) { x335=true; } if (x325) { this._doRichPostback(x326,x323,x355,x335,x361); this.__perfTimings(false,false,true,"deliver PPR request. Event: ",x323.event); this._haveOutstandingPPRRequest=true; } else { this._waitingForDocumentUnload= !x322; this.__perfTimings(false,false,true,"deliver full postback request. Event: ",x323.event); this._notifyOfUnload=false; this._doFullPostback(x326,x323,x335); } this._inDeliverQueuedServerEvents=false; } AdfDhtmlPage.prototype._sendRichPayload= function(x362,x363) { AdfAssert.assert(x362,"Attempting to send null payload"); var x364=this.getDomDocument().forms[0]; AdfAssert.assert(x364,"No form found; cannot postback"); var x365=this._addPageId(null); AdfDhtmlPage._addStateParameter(x364,x362); this._doRichPostback(x364,x362,x365,false,x363); } AdfDhtmlPage.prototype._addPageId= function(x366) { if (!x366) x366= new Object(); if (this._getPageId()!=null) { x366["Adf-Ads-Page-Id"]=this._getPageId(); } return x366; } AdfDhtmlPage.__addServerParamsToEvent= function(x367,x368) { if (x368) x367["_adfServerParams"]=x368; } AdfDhtmlPage.prototype.deliverEventToNewWindow= function(x369) { var x370=x369.getSource(); var x371=x370.getClientId(); var x372={event:x371}; x372["event." + x371]= this._marshallMultipleEventParameters(new Array(x369.getProperties())); var x373=this._getAndClearDeltas(false); if (x373) { x372["oracle.adf.view.rich.DELTAS"]=x373; } var x374=AdfDhtmlPage._getFormElement(x370); var x375=x374.target; x374.target="_new"; this._doFullPostback(x374,x372,false); x374.target=x375; } AdfDhtmlPage.prototype._marshallMultipleEventParameters= function (x376) { var x377=AdfAgent.AGENT; var x378=x377.createXmlDocument(); var x379=x378.createElement("TEMP"); if (x377.getPlatform()==AdfAgent.IE_PLATFORM) x378.documentElement=x379; else x378.appendChild(x379); var x380; if (x376.length>1) x380=x376; else x380=x376[0]; var x381=AdfMarshalingService.getDefault().marshal(x379,x380,null); return x377.getNodeXml(x381); } AdfDhtmlPage.prototype.removeComponentsInSubtree= function(x382) { if (x382.id==AdfDhtmlPage._NAVIGATION_WRAPPER_ID) { for(var x383 in this._clientIdToComponentMap) { var x384=this._clientIdToComponentMap[x383]; if (x384!=null) { x384.RemoveNotify(); } } } else { var x385= new Array(); this._postOrderPopulate(x382,0,x385,false); for(var x386=x385.length - 1;x386>=0;x386--) { var x387=x385[x386]; if (x387!=null) { var x388=x387.length; for(var x389=0;x389=0) { x425=x425.substring(0,x426); } } else { x425=this._facesPath + x422; if (x423) x425+=x423; } this._blockUI(true); this.getDataTransferService().sendRequest({_loadId:x424},x425,null,"_",[this]); } AdfDhtmlPage.prototype._onLoadPerfTimings= function() { if (this._perfProfileEnabled) { var x427=this.getDomWindow(); var x428=x427._afrTimingPreLoadStart; var x429= new Date().getTime(); var x430=x427._afrTimingCoreLibraryPartitionLoadStart; var x431=x427._afrTimingCoreLibraryPartitionLoadEnd; var x432=x431 - x430; var x433=x427._afrTimingBootstrapLibraryPartitionLoadStart; var x434=x427._afrTimingBootstrapLibraryPartitionLoadEnd; var x435=x434 - x433; var x436=x427._afrTimingLibraryPartitionsLoadStart; var x437=x427._afrTimingLibraryPartitionsLoadEnd; var x438=x437 - x436; var x439=x427._afrTimingSkinLoadStart; var x440=x427._afrTimingSkinLoadEnd; var x441=x440 - x439; var x442=x427._afrTimingCoreLibraryLoadStart; var x443=x427._afrTimingCoreLibraryLoadEnd; var x444=x443 - x442; var x445=x427._afrTimingProfilerLibraryLoadStart; var x446=x427._afrTimingProfilerLibraryLoadEnd; var x447=x446 - x445; var x448=x427._afrTimingPreludeStart; var x449=x427._afrTimingPreludeEnd; var x450=x449 - x448; var x451=x427._afrTimingProfilerScriptLoadStart; var x452=x427._afrTimingProfilerScriptLoadEnd; var x453=x452 - x451; var x454=x427._afrTimingTranslationsLoadStart; var x455=x427._afrTimingTranslationsLoadEnd; var x456=x455 - x454; var x457=x427._afrTimingElementsAddedStart; var x458=x427._afrTimingElementsAddedEnd; var x459=x458 - x457; var x460=x427._afrTimingEncodeComponentsStart; var x461=x427._afrTimingEncodeComponentsEnd; var x462=x461 - x460; var x463=x427._afrTimingRenderSkinPropertiesStart; var x464=x427._afrTimingRenderSkinPropertiesEnd; var x465=x464 - x463; var x466=x427._afrTimingAddComponentsStart; var x467=x427._afrTimingAddComponentsEnd; var x468=x467 - x466; var x469=x427._afrTimingExtendedScriptsExecuteStart; var x470=x427._afrTimingExtendedScriptsExecuteEnd; var x471=x470 - x469; var x472=x427._afrTimingLoadScriptLoadStart; var x473=x427._afrTimingLoadScriptLoadEnd; var x474=x473 - x472; var x475=x427._afrTimingExtendedScriptsLoadStart; var x476=x427._afrTimingExtendedScriptsLoadEnd; var x477=x476 - x475; var x478=x427._afrTimingPPRNavInitScriptStart; var x479=x427._afrTimingPPRNavInitScriptEnd; var x480=x479 - x478; var x481=x462 - x468; var x482=x436 - x455; var x483=x457 - x476; var x484=x427._afrTimingOnLoadEnd - x428; var x485=x427._afrTimingResizeStart; var x486=x427._afrTimingResizeEnd; var x487=x486 - x485; AdfLogger.PROFILER_LOGGER.info("initial page load started;",x428); AdfLogger.PROFILER_LOGGER.info("CSS skin load time;;",x441); AdfLogger.PROFILER_LOGGER.info("JS Trinidad library load time;;",x444); AdfLogger.PROFILER_LOGGER.info("JS profiler library load time;;",x447); AdfLogger.PROFILER_LOGGER.info("JS bootstrap library partition load time;;",x435); AdfLogger.PROFILER_LOGGER.info("JS prelude script time;;",x450); AdfLogger.PROFILER_LOGGER.info("JS profiler script load time;;",x453); AdfLogger.PROFILER_LOGGER.info("JS core library partition load time;;",x432); AdfLogger.PROFILER_LOGGER.info("JS translations library load time;;",x456); AdfLogger.PROFILER_LOGGER.info("HTML layout time;;",x482); AdfLogger.PROFILER_LOGGER.info("JS library partitions load time;;",x438); AdfLogger.PROFILER_LOGGER.info("JS load script time;;",x474); AdfLogger.PROFILER_LOGGER.info("JS load extended scripts;;",x477); AdfLogger.PROFILER_LOGGER.info("onload handler time;;",x483); AdfLogger.PROFILER_LOGGER.info("JS elements added time;;",x459); AdfLogger.PROFILER_LOGGER.info("JS render skin properties time;;",x465); AdfLogger.PROFILER_LOGGER.info("JS create components time;;",x481); AdfLogger.PROFILER_LOGGER.info("JS add components time;;",x468); AdfLogger.PROFILER_LOGGER.info("JS execute extended scripts time;;",x471); AdfLogger.PROFILER_LOGGER.info("JS execute ppr init script time;;",x480); AdfLogger.PROFILER_LOGGER.info("pre-load total time;;",x484); AdfLogger.PROFILER_LOGGER.info("resize time;;",x487); AdfLogger.PROFILER_LOGGER.info("initial page load done;",x429,";",(x429 - x428)); var x488= new Date().getTime(); this._logOffset=x488 - x429; } else if(this._perfProfileTimingEnabled) { var x427=this.getDomWindow(); var x428=x427._afrTimingPreLoadTimingStart; var x429= new Date().getTime(); AdfLogger.PROFILER_LOGGER.info("initial page load started;",x428); AdfLogger.PROFILER_LOGGER.info("initial page load done;",x429,";",(x429 - x428)); var x488= new Date().getTime(); this._logOffset=x488 - x429; } } AdfDhtmlPage.prototype.__perfTimings= function(x489,x490,x491,x492,x493) { AdfAssert.assertBoolean(x489); AdfAssert.assertBoolean(x489,x490); AdfAssert.assertBoolean(x491); if (this._perfProfileEnabled|| (x491&&this._perfProfileTimingEnabled)) { var x494=this.getDomWindow(); var x495=this._perfProfileEnabled?x494._afrTimingPreLoadStart: x494._afrTimingPreLoadTimingStart; if(x493) x492+=x493; var x496= new Date().getTime(); if (this._logOffset===undefined) this._logOffset=0; var x497=x496 - this._logOffset; if(x489) { var x498=AdfLogger.PROFILER_LOGGER.getLogWriter(); var x499=AdfClientFileLogWriter.prototype.isPrototypeOf(x498); if (x499&&x490) { x498.closeRecord(); x497= new Date().getTime(); this._logOffset=0; AdfLogger.PROFILER_LOGGER.info(x492,";",x497); } else if (x499&& !x490) { AdfLogger.PROFILER_LOGGER.info(x492,";",x497,";",(x497 - x495)); x498.closeRecord(); var x500= new Date().getTime(); this._logOffset+=(x500 - x496); } if(this._perfProfileEnabled) x494._afrTimingPreLoadStart=x497; else x494._afrTimingPreLoadTimingStart=x497; } else { AdfLogger.PROFILER_LOGGER.info(x492,";",x497,";",(x497 - x495)); } } } AdfDhtmlPage._getFormElement= function(x501) { AdfAssert.assertPrototype(x501,AdfUIComponent); var x502=x501.getPeer(); if (x502) { var x503=AdfRichUIPeer.getDomNodeForComponent(x501); return AdfDomUtils.getFormElement(x503); } return null; } AdfDhtmlPage.prototype._getParameterElement= function(x504,x505) { AdfAssert.assertString(x505); var x506=AdfAgent.AGENT; var x507=x506.getFormElement(x504,x505); if (!x507) { x507=this.getDomDocument().createElement("input"); x507.type="hidden"; x507.name=x505; x504.appendChild(x507); } return x507; } AdfDhtmlPage.prototype._setParameter= function(x508,x509,x510) { this._getParameterElement(x508,x509).value=x510; } AdfDhtmlPage.prototype._appendParameter= function(x511,x512,x513) { var x514=this._getParameterElement(x511,x512); var x515=x514.value; if (x515) { x513=x515 + "," + x513; } x514.value=x513; } AdfDhtmlPage._removeAllFormElements= function(x516) { AdfAssert.assert(x516,"Invalid form; cannot remove elements"); var x517=x516.elements; if (x517) { var x518=null; for(var x519=x517.length - 1;x519>=0;x519--) { x518=x517.item(0); if (x518) { x518.parentNode.removeChild(x518); } } } } AdfDhtmlPage.prototype._getPublicAncestor= function(x520) { var x521=x520; while(x521!=null) { if (!x521.satisfiesUsage(AdfUIComponent.USAGE_PRIVATE_CHILD)) { return x521; } else { x521=x521.getParent(); } } } AdfDhtmlPage.prototype._redistribute= function(x522) { var x523=this.getDnDContext(); if (x523&&x523.isDragging()) return; var x524=AdfAgent.AGENT; if (x522&&x522.type=="click"&&x522.timeStamp==0) { var x525=x524.getEventTarget(x522); if (x524.getNodeName(x525)=="LABEL") { var x526=AdfRichUIPeer.getFirstAncestorComponent(x525); var x527=x526.getPeer(); x527.focus(x526); x524.eatEvent(x522); return; } } if (x524.getPlatform()==AdfAgent.GECKO_PLATFORM&&x522&& x522.type=="keypress"&&x522.keyCode==27) { x522.preventDefault(); } this.SetPhase(AdfPage.DELIVER_EVENTS_PHASE); try { if (!x522) { x522=this.getDomWindow().event; } var x528=this.__getPollHelper(); if (x528) { x528._resetPollingTimeoutHandler(x522); } var x525=x524.getEventTarget(x522); if ((x525==null)||(x525.nodeType==null)) return; var x529=this.getActiveComponent(); var x526=AdfRichUIPeer.getFirstAncestorComponent(x525); var x530=x522.type; var x531=x524.mapNativeToComponentEventType(x530); if (x530=="click") this._fixupLinkOnClick(x525); else if (x531=="focus") { if (!this.__setActiveDomNodeInfo(x525,(x526)?x526.getClientId():null)) { x524.eatEvent(x522); return; } } if (x526!=null) { var x527=x526.getPeer(); if (x531==AdfComponentEvent.FOCUS_EVENT_TYPE||x531==AdfComponentEvent.BLUR_EVENT_TYPE) { var x532=this._getPublicAncestor(x526); if (x532) { var x533=AdfRichUIPeer.getDomContentElementForComponent(x532); if (x533) { if (x531==AdfComponentEvent.FOCUS_EVENT_TYPE) AdfDomUtils.addCSSClassName(x533,AdfRichUIPeer.FOCUS_TARGET_STYLECLASS); else AdfDomUtils.removeCSSClassName(x533,AdfRichUIPeer.FOCUS_TARGET_STYLECLASS); } } } else if (x530=="mouseover"||x530=="mouseout") { var x534=(x524.getPlatform()==AdfAgent.IE_PLATFORM&& Math.floor(x524.getVersion())==7); var x535=AdfPage.PAGE.getLocaleContext().isRightToLeft(); if (!(x534&&x535)) { var x532=this._getPublicAncestor(x526); if (x532) { var x536=x532.getPeer(); x536.bind(x532); var x537=AdfRichUIPeer.getDomContentElementForComponent(x532); if (x530=="mouseover") { if (x537) { AdfDomUtils.addCSSClassName(x537,AdfRichUIPeer.HOVER_TARGET_STYLECLASS); } } else if (x530=="mouseout") { var x538=true; var x539=x524.getEventToElement(x522); if (x539&&x539.nodeType!=null){ var x540=AdfRichUIPeer.getFirstAncestorComponent(x539); x540=this._getPublicAncestor(x540); if (x540) { var x541=x540.getPeer(); x541.bind(x540); var x542=x541.getDomElement(); if (x542==x537) { x538=false; } } } if (x538&&x537) { AdfDomUtils.removeCSSClassName(x537,AdfRichUIPeer.HOVER_TARGET_STYLECLASS); } } } } else { AdfLogger.LOGGER.info("Due to a bug in IE, skinning's hover-target pseudo class not supported on IE in right to left mode."); } } var x543=x527.__CreateComponentEvent(x526,x522,x529); if (x543) { AdfAssert.assert(x543.getSource()===x526, "event generation can't change event source"); var x544=x543.getType(); switch(x544) { case AdfComponentEvent.FOCUS_EVENT_TYPE: AdfLogger.LOGGER.fine("Focus: ",x526); delete this._restorePprFocusIndex; this.__setActiveDomNodeInfo(x525,x526.getClientId()); break; } if (x523&&AdfUIInputEvent.prototype.isPrototypeOf(x543)) { var x545=x523.__handleInputEvent(x543); if (!x545) { x524.preventDefault(x522); } } x526.queueEvent(x543); this._eventLoopDeliverEvents(); } if (this._descendantResizeNotifyQueued) { AdfPage.PAGE.__doDescendantResizeNotify(); this._descendantResizeNotifyQueued=false; } } } finally { this.SetPhase(AdfPage.WAITING_FOR_USER_INPUT_PHASE); if (AdfAssert.DEBUG) { AdfLogger.LOGGER.getLogWriter().flush(); } } } AdfDhtmlPage.prototype.createFloatingDiv= function(x546,x547,x548) { AdfAssert.assertDomElement(x546); AdfAssert.assertNumber(x547); AdfAssert.assertString(x548); var x549=x546.ownerDocument; var x550=x549.createElement("DIV"); var x551=x550.style; x551.zIndex=x547; x551.position="absolute"; x551.visibility="hidden"; var x552=x549.createElement("SPAN"); x552.style.display="block"; x552.className=x548; x550.appendChild(x552); x546.appendChild(x550); return x550; } AdfDhtmlPage.prototype.showFloatingDiv= function( x553, x554) { this._clearFloatingDiv(x553); var x555=x553.firstChild; x555.appendChild(x554); var x556=x553.style; x556.visibility="visible"; } AdfDhtmlPage.prototype.hideFloatingDiv= function(x557) { AdfAssert.assertDomElement(x557); var x558=x557.style; x558.visibility="hidden"; x558.top="-100px"; x558.left="-100px"; this._clearFloatingDiv(x557); } AdfDhtmlPage.prototype._clearFloatingDiv= function(x559) { AdfAssert.assertDomElement(x559); var x560=x559.firstChild; var x561=x560.firstChild; var x562; while(x561) { x562=x561.nextSibling; x560.removeChild(x561); x561=x562; } } AdfDhtmlPage.prototype.prepareMaskingFrame= function() { var x563=this.getZOrderManager(); x563.prepareMaskingFrame(); } AdfDhtmlPage.prototype.createMaskingFrame= function( x564 ) { var x565=this.getZOrderManager(); var x566=x565.createMaskingFrame(); this.moveMaskingFrame(x564,x566); return x566; } AdfDhtmlPage.prototype.moveMaskingFrame= function( x567, x568 ) { var x569=x568.style; var x570=AdfAgent.AGENT; var x571=x570.getElementPosition(x567); x569.top=x571.y + "px"; x569.left=x571.x + "px"; x569.width=x567.offsetWidth + "px"; x569.height=x567.offsetHeight + "px"; x569.visibility="visible"; } AdfDhtmlPage.prototype.removeMaskingFrame= function( x572 ) { var x573=this.getZOrderManager(); x573.removeMaskingFrame(x572); } AdfDhtmlPage.prototype.getDocument= function() { return this._document; } AdfDhtmlPage.prototype.getDomDocument= function() { return this._document; } AdfDhtmlPage.prototype.getDomWindow= function() { return this._window; } AdfDhtmlPage.prototype.showGlassPane= function(x574,x575) { AdfLogger.LOGGER.finest("Show glasspane"); AdfAssert.assert(x574); AdfAssert.assertString(x575); var x576=this.getGlassPane(); this._positionGlassPane(true); x576.style.visibility="visible"; var x577=AdfAgent.AGENT; x577.setCursor(x576,x577.getCursor(x575)); x577.startMouseEventCapture(x574); var x578=(x577.getPlatform()==AdfAgent.IE_PLATFORM?this._document.body:x576); this._keyCaptureState=x577.startDocumentKeyEventCapture(x574,x578); } AdfDhtmlPage.prototype.hideGlassPane= function(x579) { AdfAssert.assert(x579); AdfLogger.LOGGER.finest("Hide glasspane"); var x580=AdfAgent.AGENT; var x581=this.getGlassPane(); x580.setCursor(x581,"auto"); x580.stopMouseEventCapture(x579); var x582=(x580.getPlatform()==AdfAgent.IE_PLATFORM?this._document.body:x581); x580.endDocumentKeyEventCapture(x579,x582,this._keyCaptureState); this._keyCaptureState=null; var x583=x581.style; x583.cursor="auto"; x583.visibility="hidden"; x583.height="1px"; x583.width="1px"; x580.forceCursorChange(this.getDomDocument()); } AdfDhtmlPage.prototype.getDnDContext= function() { var x584=this._dndContext; if (x584===undefined) { x584=(this.getDomWindow().AdfDhtmlDnDContext)? new AdfDhtmlDnDContext(): null; this._dndContext=x584; } return x584; } AdfDhtmlPage.prototype.__clearDnDContext= function() { delete this._dndContext; } AdfDhtmlPage.prototype.getGlassPane= function() { var x585=this._glassPane; if (!x585) { x585=this._createGlassPane(this.getDomDocument()); this._glassPane=x585; } return x585; } AdfDhtmlPage.prototype._createGlassPane= function(x586) { var x587=x586.createElement("div"); x587.className="AFBlockingGlassPane"; var x588=x587.style; x588.position="absolute"; x588.left="0px"; x588.top="0px"; x588.zIndex=AdfDhtmlZOrderManager.getMaxZIndex() + 1; x588.visibility="hidden"; x588.tabIndex= -1; var x589=AdfAgent.AGENT; x589.disableUserSelect(x587); x586.body.appendChild(x587); x589.setOpacity(x587,0); return x587; } AdfDhtmlPage.prototype._positionGlassPane= function(x590) { var x591=this._glassPane; if (x591) { var x592=x591.style; if (x590||(x592.visibility=="visible")) { var x593=this.getDomDocument().body; var x594=Math.max(x593.offsetHeight,x593.scrollHeight); var x595=Math.max(x593.offsetWidth,x593.scrollWidth); x592.height=x594 + "px"; x592.width=x595 + "px"; } } } AdfDhtmlPage.prototype._positionBlockingGlassPane= function(x596) { var x597=this.getDomDocument(); var x598=this.getGlassPane(); var x599=AdfAgent.AGENT; if (x598) { var x600=x598.style; if (x596||(x600.visibility=="visible")) { var x601=x599.getDomWindow(); var x602=x599.getWindowScrollHeight(x601); var x603=x599.getWindowScrollWidth(x601); x600.height=x602 + "px"; x600.width=x603 + "px"; var x604=this._uiMaskingFrame; if (x604) { this.moveMaskingFrame(x598,x604); } } } } AdfDhtmlPage.prototype._installBlockingHandler= function(x605) { var x606=AdfAgent.AGENT; var x607=(x606.getPlatform()==AdfAgent.IE_PLATFORM); var x608=this.getGlassPane(); x608.onkeydown=AdfAgent.eatEventCallback; x608.onkeyup=AdfAgent.eatEventCallback; x608.onkeypress=AdfAgent.eatEventCallback; x606.disableBrowserContextMenu(x608,true); var x609=this._uiMaskingFrame=this.createMaskingFrame(x608); AdfDomUtils.addCSSClassName(x609,"AFBlockingMaskingFrame"); var x610=x609.document; if (x610!=null) { x606.disableBrowserContextMenu(x610,true); } if(x607) { AdfFocusUtils.focusElement(x608); } else { x606.installKeyboardBlocker(x605,true); } var x611=this.getActiveDomElement(); if (x611) { this._activeIDBeforeBlocking=x611.id } var x612=x606.getDomWindow(); var x613=this._positionBlockingGlassPaneCallback; x606.addBubbleEventListener(x612,"resize",x613); x606.setOpacity(x608,AdfDhtmlPage._BLOCKING_OPACITY); x606.setOpacity(x609,AdfDhtmlPage._BLOCKING_OPACITY); var x614=x608.style; this._positionBlockingGlassPane(true); x614.visibility="visible"; } AdfDhtmlPage.prototype._removeBlockingHandler= function( x615 ) { var x616=AdfAgent.AGENT; var x617=(x616.getPlatform()==AdfAgent.IE_PLATFORM); x616.disableBrowserContextMenu(x615,false); var x618=this._uiMaskingFrame; delete this._uiMaskingFrame; var x619=x618.document; if (x619!=null) x616.disableBrowserContextMenu(x619,false); AdfDomUtils.removeCSSClassName(x618,"AFBlockingMaskingFrame"); this.removeMaskingFrame(x618); var x620=this.getGlassPane(); x620.onkeydown=null; x620.onkeyup=null; x620.onkeypress=null; var x621=x620.style; x621.cursor="auto"; x621.visibility="hidden"; x621.height="0px"; x621.width="0px"; var x622=this._activeIDBeforeBlocking; delete this._activeIDBeforeBlocking; if(x622) { var x623=x616.getElementById(x622); if (x623) { AdfFocusUtils.focusElement(x623); } } if(!x617) { x616.installKeyboardBlocker(x615,false); } var x624=x616.getDomWindow(); var x625=this._positionBlockingGlassPaneCallback; x616.removeBubbleEventListener(x624,"resize",x625); } AdfDhtmlPage.prototype._blockUI= function( x626 ) { var x627=AdfAgent.AGENT; var x628=this.getDomDocument(); if(x626&& !this._uiBlocked) { this._installBlockingHandler(x628); x627.showBusyCursor(x628,x626); this._broadcastBusyStateEvent(true); this._uiBlocked=true; } else if(!x626&&this._uiBlocked) { x627.showBusyCursor(x628,x626); this._broadcastBusyStateEvent(false); this._removeBlockingHandler(x628); this._uiBlocked=false; } } AdfDhtmlPage.prototype._isUIBlocked= function(){ return (this._uiBlocked); } AdfDhtmlPage.prototype.showPageProcessingIndicator= function(x629) { if(null==this._pageProcessingIndicator) { this._pageProcessingIndicator=AdfDhtmlPageProcessingIndicator.getInstance(); } this._pageProcessingIndicator.display(x629,this.getDomDocument()); if(x629) { AdfAgent.AGENT.setOpacity(this._uiBlockingDiv,50); this._uiBlockingDiv.style.backgroundColor= this._pageProcessingIndicator.getBackgroundColor(); } else { AdfAgent.AGENT.setOpacity(this._uiBlockingDiv,0); this._uiBlockingDiv.style.backgroundColor="";} } AdfDhtmlPage.prototype.isProcessingIndicatorDisplayed= function() { return (null!=this._pageProcessingIndicator&& this._pageProcessingIndicator.isDisplayed()); } AdfDhtmlPage.prototype.requestStatusChanged= function(x630) { if (x630.getStatus()==AdfDataTransferRequestEvent.STATUS_COMPLETE) { var x631=x630.getContext(); var x632=false; if (x631) { var x633=x631.busyCounts; var x634=this._busyCounts; for(var x635 in x633) { var x636=x634[x635] - x633[x635]; AdfAssert.assert(x636>=0); if (x636==0) { delete x634[x635]; var x637=this.findComponent(x635); if (x637) { x637.getPeer().setBusy(x637,false); } } else { x634[x635]=x636; } } } var x638=x630.getResponseStatusCode(); if (x638==200) { var x639; var x640; if (x630.getResponseHeader) x639=x630.getResponseHeader("Adf-Window-Id"); if (x639) { AdfPage.PAGE.getDomWindow().name=x639; } if (x630.isRichResponse()) { this.__perfTimings(false,false,true,"PPR response from server received"); var x641=x630.getResponseXML(); x640=this._handleRichResponse(x641,x631); if (x640&&x631&&x631._noResponseExpected) { this._partialRequestRedirect=false; } } else { this._handleInvalidPprResponse(x630.getResponseText()); return; } if (x639&& !x640) { AdfPage.PAGE._startGlobalActiveData(); } } else { this._handleInvalidPprResponse(null); return; } var x642=null; if (x631) { x642=x631.__checkPointId; } if (x642) AdfDhtmlPage._POSTBACK_CHECKPOINT.stop(x642); this.__perfTimings(false,false,true,"PPR response processing done"); this._haveOutstandingPPRRequest=false; if(this.getDomWindow().AdfUserActivityInfo!=null) { prevActInfo=AdfUserActivityInfo.getInstance(AdfUserActivityInfo.PREVIOUS); prevActInfo.setClientEndTime(new Date().getTime().toString()); } if (this._isUIBlocked()) { this._blockUI(false); } } } AdfDhtmlPage._keyEventCallback= function(x643) { AdfPage.PAGE._handleKey(x643); } AdfDhtmlPage.prototype.registerKeyStroke= function( x644, x645, x646) { AdfAssert.assertPrototype(x644,AdfKeyStroke); AdfAssert.assertFunction(x645); var x647=null; if (x646&&x646.clientId) { x647=x646.clientId; } var x648=x644.toMarshalledString(); if (x648 in this._keyStrokeToCallbackMap) { var x649=true; if (x647) { var x650=this._keyStrokeToCallbackMap[x648]; if (x650.multipleAllowed) { x649=false; x650.callbacks[x647]=x645; x650.callbackContexts[x647]=x646; AdfLogger.LOGGER.finest( "RP.registerKSAdditional, keystroke:callback:clientId ", x644, " : ", x645, " : ", x647); } } if (x649) { AdfLogger.LOGGER.warning("Conflicting shortcut mapping: The keystroke ", x644, " has already been registered on the RichPage."); } } else { if (x647) { var x651={ multipleAllowed:true, callbacks:{}, callbackContexts:{} }; x651.callbacks[x647]=x645; x651.callbackContexts[x647]=x646; AdfLogger.LOGGER.finest( "RP.registerKS, keystroke:callback:clientId ", x644, " : ", x645, " : ", x647); this._keyStrokeToCallbackMap[x648]=x651; } else { AdfLogger.LOGGER.finest("RP.registerKS, keystroke:callback ",x644," : ",x645); this._keyStrokeToCallbackMap[x648]=x645; this._keyStrokeToCallbackContextMap[x648]=x646; } } } AdfDhtmlPage.prototype.unregisterKeyStroke= function(x652,x653) { AdfAssert.assertPrototype(x652,AdfKeyStroke); var x654=x652.toMarshalledString(); if (x653) { var x655=this._keyStrokeToCallbackMap[x654]; if (x655.callbacks&&x655.callbacks.length<=1) { delete this._keyStrokeToCallbackMap[x654]; } else { delete x655.callbacks[x653]; delete x655.callbackContexts[x653]; } } else { delete this._keyStrokeToCallbackMap[x654]; delete this._keyStrokeToCallbackContextMap[x654]; } } AdfDhtmlPage.prototype._handleKey= function(x656) { var x657=AdfAgent.AGENT; var x658=x657.getKeyCode(x656); var x659=(x656.shiftKey*AdfKeyStroke.SHIFT_MASK)| (x656.ctrlKey*AdfKeyStroke.CTRL_MASK)| (x656.altKey*AdfKeyStroke.ALT_MASK); if (x656.metaKey) x659|=AdfKeyStroke.META_MASK; var x660=AdfKeyStroke.getKeyStroke(x658,x659); var x661=x660.toMarshalledString(); var x662=this._keyStrokeToCallbackMap[x661]; if (x662!=null) { var x663=x661 in AdfDhtmlPage._KEYSTROKE_OVERRIDES; if (x663) { var x664=x657.getEventTarget(x656); var x665=x657.getNodeName(x664).toLowerCase(); if (x665!="textarea") { if (x665=="input") { var x666=x664.type.toLowerCase(); x663=(x666=="text")||(x666=="password"); } else { x663=false; } } } if(!x663) { var x667=this._keyStrokeToCallbackContextMap[x661]; if (x662.multipleAllowed) { var x668=x662.callbacks; var x669=x662.callbackContexts; x662=null; var x670=false; var x671=0; for(clientId in x668) { x671++; } if (x671>1) { var x672=this.getDomDocument(); var x673=x672.activeElement; if (!x673) { x673=this.getActiveDomElement(); } if (!x673) { AdfLogger.LOGGER.finest("No known activeElement available for _handleKey."); x673=x672.documentElement; } var x674=Number.POSITIVE_INFINITY; for(clientId in x668) { var x675=this.findComponent(clientId); if (x675) { var x676=AdfRichUIPeer.getDomElementForComponent(x675); if (x676) { var x677=AdfDomUtils.getNodeDistance(x676,x673); if (x677==0) { x670=true; x662=x668[clientId]; x667=x669[clientId]; break; } else if (x6770&&this._incompleteImageTimerAttempts<10) { this._incompleteImageTimerAttempts++; this._incompleteImageTimer= this.scheduleTimer(this,this._attemptToRelayoutForNewlyCompleteImages,null,500); } else { if (x742>0) { AdfLogger.LOGGER.fine("Gave up trying to wait for images to load."); } this.__doDescendantResizeNotify(); } } AdfDhtmlPage.prototype._handleRichResponse= function(x747,x748) { var x749=this._applyRichResponse(x747.documentElement,true,false,false,x748); this._resetPendingStreamingIDs(); if (!x749) { this.__doDescendantResizeNotify(); this.flushToAssistiveTechnology(); if (x748&&x748._responseAnnounced) { var x750=this.getLookAndFeel(); var x751=x750.getTranslatedString("AFResponseCompleteStatus"); this.announceToAssistiveTechnology(x751); } } return x749; } AdfDhtmlPage.prototype._getFocusPath= function() { var x752=this._activeDomNode; var x753=[]; if (x752!=null) { var x754=x752; while(x754) { var x755=x754.id; if (x755) { x753[x755]=x753.push(x754)- 1; } x754=x754.parentNode; } } return x753; } AdfDhtmlPage.prototype._restoreFocusPath= function(x756,x757) { AdfAssert.assertArray(x756); AdfAssert.assertNumberOrNull(x757); var x758=x756.length; if (x757>=x758) x757=x758 - 1; var x759=AdfAgent.AGENT; for(var x760=0;x760<=x757;x760++) { var x761=x756[x760]; var x762=x761.id; var x763=x759.getElementById(x762); if (x763!=null) { var x764= new Object(); var x765=AdfDomUtils.getFirstElementMatch(x763, null, AdfFocusUtils.isFocusable, x764); if (!x765) { x765=AdfDomUtils.getNextElementMatch(x763, null, true, AdfFocusUtils.isFocusable, x764); if (!x765) x765=AdfDomUtils.getPreviousElementMatch(x763, null, AdfFocusUtils.isFocusable, x764); } if (x765) { AdfFocusUtils.focusElement(x765); } break; } } } AdfDhtmlPage.prototype._applyRichResponse= function(x766, x767, x768, x769, x770) { if (this._warnUncommitted) this._trackErrors=true; this._richPostbackHasErrors=false; var x771=false; try { var x772; var x773=this.isScreenReaderMode(); if (x773) { x772= new Object(); AdfCollections.copyInto(x772,this._activeComponents); } var x774=AdfAgent.AGENT; var x775=x774.getNodeName(x766); if (x775=="content") { var x776=null; if (x767) this._handleRichResponseAction(x766); var x777=[]; var x778=this._getFocusPath(); var x779=x766.childNodes; var x780=x779.length; var x781; if (x770!=null) { x781=x770._clientEventsSet; } if (x781&&x781[AdfPollEvent.POLL_EVENT_TYPE]) { this._componentsUpdatedByPollEvent= new Array(); } for(var x782=0;x782" } AdfDhtmlPage.prototype._handleRichResponseAction= function(x817) { var x818=x817.getAttribute("action"); if (x818) { var x819=this.getDomDocument(); x819.forms[0].action=x818; } var x820=AdfAgent.AGENT.getAttribute(x817,AdfDhtmlPage._CUSTOM_PPR_URL_EXPANDO); if(x820) { AdfAgent.AGENT.setAttribute(x819.forms[0], AdfDhtmlPage._CUSTOM_PPR_URL_EXPANDO, x820); } } AdfDhtmlPage.prototype._handleRichResponseFragment= function( x821,x822,x823,x824,x825) { var x826=this._getFirstElementFromFragment(x821,x823); if (x826==null) { AdfLogger.LOGGER.warning("Unable to locate content in partial page response fragment. " + "If you are adding a partial target programmatically, try setting " + "clientComponent=\"true\" on the partial target component."); return null; } var x827={restoreFocusIndex:null,pprNavParams:null}; var x828=x826.getAttribute("id"); AdfAssert.assert((x828!=null),"null id in response fragment"); if (this._componentsUpdatedByPollEvent!=null) { this._componentsUpdatedByPollEvent.push(x828); } var x829=this.getDomDocument(); var x830=AdfAgent.AGENT; var x831=x830.getElementById(x828); if (x831==null) { AdfLogger.LOGGER.severe("unable to locate target node: " + x828); } else { var x832=x826.getAttribute(AdfDhtmlPage._DOCUMENT_STYLE_HOLDER); if (x832=="true") { var x833=this.getDomDocument().body; var x834=x826.getAttribute("theme"); x833.setAttribute("theme",x834?x834:""); x826.removeAttribute("theme"); var x835=x826.className; var x836=x833.className; if (x835!=x836) x833.className=x835?x835:""; x826.className=""; var x837=x826.style.cssText; x833.style.cssText=x837?x837:""; x826.style.cssText=""; } var x838=null; var x839=this.getDomDocument().forms[0]; var x840=x839.action; var x841=x840.indexOf('?'); if (x841>=0) x838=x840.substring(x841); var x842=x824[x828]; var x843=AdfRichUIPeer.getFirstAncestorComponent(x831.parentNode); var x844=(x843) ?x843.getPeer() :null; var x845=(x826.id==AdfDhtmlPage._NAVIGATION_WRAPPER_ID); if (x845) { this._resizeNotifyMap= new Object(); this._resizeNotifyTree= new Object(); this._descendantResizeNotifyList= new Array(); this._serverEventQueue= new Array(); this._noResponseEventQueue= new Array(); this._discreteEventQueue= new Array(); this._partialTargets=null; this._autoPPRComponents= new Object(); this._activeComponents= new Object(); } if (x844!=null) { x844.replaceDomElement(x843,x826,x831); } else { this.__replaceDomElement(x826,x831); } if ((x842!=null)&& !x845) { x827.restoreFocusIndex=x842; } var x846=null; if (x843) { x846=x844.domReplaceNotify(x843,x826); } else { x846=x826; } if (x846) x822.push(x846); if (x845) { var x847=x830.getAttribute(x826,AdfDhtmlPage._NAVIGATION_VIEW_ROOT); var x848=x830.getAttribute(x826,AdfDhtmlPage._NAVIGATION_QUERY_PARAMS); x848=x848?x848:x838 x827.pprNavParams={viewId:x847,queryParams:x848}; } else if (!x825) { this._setRichResponseDirty(true); } } return x827; } AdfDhtmlPage.prototype.__replaceDomElement= function(x849,x850) { var x851=AdfAgent.AGENT; this.removeComponentsInSubtree(x850); var x852=(x850.id==AdfDhtmlPage._NAVIGATION_WRAPPER_ID); if (!x852) x851.elementsRemoved(x850); x850.parentNode.replaceChild(x849,x850); if (x852) x851.allElementsRemoved(); if (x851.getPlatform()==AdfAgent.IE_PLATFORM) { var x853=x851.getElementById(AdfDhtmlPage._PARSER_DIV_ID); x853.appendChild(x850); x853.innerHTML=""; } x851.elementsAdded(x849); } AdfDhtmlPage.prototype._getFirstElementFromFragment= function(x854,x855) { var x856=x854.childNodes; var x857; var x858=x856.length; AdfAssert.assert((x858>=1),"invalid fragment child count"); if(x858>1) { var x859= new Array(x858); for(var x860=0;x860=0; --x881) { var x882=x879[x881]; if (x882.getAttribute('href')==x876) { return x882; } } } else { x877[x876]=true; } var x883=document.createElement('link'); x883.setAttribute('type','text/css'); x883.setAttribute('rel','stylesheet'); x883.setAttribute('href',x876); x878.appendChild(x883); return x883; } AdfDhtmlPage.prototype._handleRichResponseScript= function(x884) { var x885=x884.getAttribute("src"); if (x885) { this._loadScript(x885); } else { var x886=AdfAgent.AGENT; var x887=x886.getTextContent(x884); try { x886.execScript(this.getDomWindow(),x887); } catch(problem) { AdfLogger.LOGGER.severe( "Error: " + problem + "\nWhile handling rich response script: " + x887); this._logAsGlobalError(problem); } } } AdfDhtmlPage.prototype._handleRichResponseLibrary= function(x888) { var x889=AdfAgent.AGENT.getTextContent(x888); this._loadScript(x889); } AdfDhtmlPage.prototype._doResizeNotify= function(x890) { for(var x891=0;x8910) { x928=x928 + "&"; } return x928 + x929 + "=" + encodeURIComponent(x930).replace(/\'/g,'%27') .replace(/%20/g,'+'); } AdfDhtmlPage.prototype._setSelectedEditingComponents= function(x931) { AdfAssert.assertArrayOrNull(x931); var x932=this.getSelectedEditingComponents(); if (x931==x932) return; var x933="p_AFInlineSelected"; var x934; if (x932!=null) { var x935=x932.length; for(x934=0;x934=AdfFacesMessage.TYPE_ERROR) this._richPostbackHasErrors=true; if (!x984.sorted[x985]) { x984.sorted[x985]=[]; } x984.push(x980); x984.sorted[x985].push(x980); if (x985>x984.maxType) { x984.maxType=x985; } var x986=this._global_max_msg_type; if (!x986||x985>x986) { if (x985==null) { delete this._global_max_msg_type; } else { this._global_max_msg_type=x985; } } this._notifyComponent(x982,x984); } AdfDhtmlPage.prototype.showMessages= function(x987) { x987=this._resolveMessageComponentId(x987); var x988=this.getAllMessages(); var x989=x988[x987]; var x990=this.findComponent(x987); if (x990!=null){ var x991=x990.getPeer(); x991.bind(x990); if (x989!=null) { x991.messageShow(x990,x989["maxType"],x989); } else { x991.messageShow(x990); } } } AdfDhtmlPage.prototype.getMessages= function(x992) { x992=this._resolveMessageComponentId(x992); return this._messages[x992]; } AdfDhtmlPage.prototype.getAllMessages= function() { var x993=this._messages; var x994={}; for(messageId in x993) { var x995=this.findComponent(messageId); if (x995==null) { AdfLogger.LOGGER.info("AdfDhtmlPage.getAllMessages: ignoring messages for non-existing component: ", x995); continue; } var x996=AdfRichUIPeer.getDomElementForComponent(x995); if (AdfDomUtils.isInVisibleSubtree(x996)) { x994[messageId]=x993[messageId]; } else { AdfLogger.LOGGER.info("AdfDhtmlPage.getAllMessages: ignoring messages for hidden component: ", x995); } } return x994; } AdfDhtmlPage.prototype.getClientIdsWithMessages= function() { var x997=[]; var x998=this._messages; var x999=this._defaultMessageKey; for(var x1000 in x998) { if (x1000==x999) { x997.push(null); } else { var x1001=this.findComponent(x1000); if (x1001==null) { continue; } var x1002=AdfRichUIPeer.getDomElementForComponent(x1001); if (AdfDomUtils.isInVisibleSubtree(x1002)) { x997.push(x1000); } } } return x997; } AdfDhtmlPage.prototype.clearMessages= function(x1003) { x1003=this._resolveMessageComponentId(x1003); var x1004=this._messages[x1003]; if (x1004!=null) { delete this._messages[x1003]; delete this._global_max_msg_type; this._notifyComponent(x1003,null); } this._clearDelayedMessages(x1003); } AdfDhtmlPage.prototype.clearAllMessages= function() { var x1005=[]; for(var x1006 in this._messages) { x1005.push(x1006); } this._messages={}; delete this._global_max_msg_type; for(var x1007 in x1005) { this._notifyComponent(x1005[x1007],null); } this._clearAllDelayedMessages(); } AdfDhtmlPage.prototype.hasMessages= function(x1008) { return (this.getMessages(x1008)!=null); } AdfDhtmlPage.prototype.clearSubtreeMessages= function(x1009) { var x1010=this.getClientIdsWithMessages(); if(x1010) { var x1011=AdfAgent.AGENT; var x1012=AdfPage.PAGE.findComponent(x1009); var x1013; if (x1012&&x1012 instanceof AdfRichPopup) { x1013=AdfDhtmlPopupPeer.getContentDom(x1012); } else { x1013=x1011.getElementById(x1009); } if (x1013) { for(var x1014=0;x1014x1019)) { x1019=x1021.maxType; } } if (x1019!=null) { this._global_max_msg_type=x1019; } } return x1019; } AdfDhtmlPage.prototype._notifyComponent= function(x1022,x1023) { if (x1022!=this._defaultMessageKey) { var x1024=AdfPage._FOR_CONTAINER_PREFIX + x1022; var x1025=AdfAgent.AGENT.getElementById(x1024); if (x1025!=null&& !this.isScreenReaderMode()) { if (x1023==null) { AdfDomUtils.removeAllNodes(x1025); } else { x1023["overridden"]=true;AdfDomUtils.removeAllNodes(x1025); AdfMessageUtils.appendComponentMessageInlineDom(x1025,x1023); } } var x1026=this.findComponent(x1022); if (x1026!=null){ var x1027=x1026.getPeer(); x1027.bind(x1026); if (x1023!=null) { x1027.messageNotify(x1026,x1023["maxType"],x1023); } else { x1027.messageNotify(x1026); } } } x1026=this.findComponent(this._defaultMessageKey); if (x1026!=null) { x1027=x1026.getPeer(); x1027.bind(x1026); x1027.messageNotify(x1026,this._getMaxType(),x1023); } } AdfDhtmlPage.prototype._addDelayedMessages= function(x1028) { var x1029=this._delayedMessages; var x1030=false; for(var x1031 in x1029) { if (this.findComponent(x1031)==null) { continue; } var x1032=x1029[x1031]; var x1033=x1032.length; for(var x1034=0;x1034x1102) { if (this.isScreenReaderMode()) { this._activeComponents[x1094].dirty=true; this._activeComponents[x1094].lastUpdateTime= new Date().getTime(); } else { x1101=x1100.processPushData(x1095,x1096); } if (x1098!==undefined) { var x1103= new Date().getTime(); if (x1098%500==0) { AdfLogger.LOGGER.info("ADS: GENERAL: component finished processing event : ", " windowId:",this._windowId, " pageId:",this._pageId, " clientId:",x1094, " eventId:",x1096, " client time:",x1103, " event number:",x1098); } if (x1099) { AdfLogger.LOGGER.info("ADS: component finished processing event : ", " windowId:",this._windowId, " pageId:",this._pageId, " clientId:",x1094, " eventId:",x1096, " client time:",x1103); } } this._activeComponents[x1094].changeCount=x1096; } else { AdfLogger.LOGGER.fine("Old active data for",x1094," declined"); } } } else { AdfLogger.LOGGER.fine("No active component:",x1094," Deregestering component"); } return x1101; } AdfDhtmlPage.prototype.__processActiveDataEvent= function( x1104, x1105, x1106, x1107, x1108, x1109, x1110, x1111) { AdfAssert.assertString(x1104); AdfAssert.assertString(x1105); AdfAssert.assertString(x1106); AdfAssert.assertObject(x1107); AdfAssert.assertNumber(x1108); AdfAssert.assertNumber(x1109); AdfAssert.assertNumber(x1111); AdfAssert.assertNumberOrNull(x1110); this._lastActiveDataActivityTime= new Date().getTime(); if (x1110!==undefined) { if (x1110%500==0) { AdfLogger.LOGGER.info("ADS: GENERAL: active data manager receives event : ", " windowId:",x1104, " pageId:",x1105, " clientId:",x1106, " eventId:",x1108, " event generation time:",x1109, " client time:",this._lastActiveDataActivityTime, " event number:",x1110); } if (x1111) { AdfLogger.LOGGER.info("ADS: active data manager receives event : ", " windowId:",x1104, " pageId:",x1105, " clientId:",x1106, " eventId:",x1108, " event generation time:",x1109, " client time:",this._lastActiveDataActivityTime); } } var x1112=this._getTargetPage(x1104); if (x1112) { if (x1112._getPageId()==x1105) { var x1113=this._getMilliSecondsBehind(x1109); var x1114=(x1113>this._latencyThreshold); if (x1110!==undefined) x1112._processPushData( x1106,x1107,x1108,x1114,x1110,x1111==1); else x1112._processPushData( x1106,x1107,x1108,x1114); } } } AdfDhtmlPage.prototype._getTargetPage= function(x1115) { AdfAssert.assertString(x1115); if (x1115==this._windowId) { return this; } var x1116=null; var x1117=this._windowNameToWindow; if (x1117!=null) { x1116=x1117[x1115]; } var x1118=null; if (this._testAdfPageExistence(x1116)) { try { x1118=x1116.AdfPage.PAGE; } catch(e) { AdfLogger.LOGGER.fine("Could not access active window:",x1115); } } return x1118; } AdfDhtmlPage.prototype._refreshPushComponent= function (x1119) { AdfAssert.assertString(x1119); var x1120=this.findComponent(x1119); if (x1120) { this.addPartialTargets(x1120); return true; } else { this._stopActiveData(x1119); AdfLogger.LOGGER.info("No active component:",x1119); return false; } } AdfDhtmlPage.prototype._refreshAllPushComponents= function () { var x1121=this._activeComponents; for(var x1122 in x1121) { this._refreshPushComponent(x1122); } } AdfDhtmlPage.prototype._notifyADSConnectionStateChange= function(x1123) { AdfAssert.assert(this._masterWindowId==this._windowId, "_notifyADSConnectionStateChange should not be called on a non-master window"); var x1124=undefined; var x1125=undefined; var x1126=this._getRegistryMap(); for(var x1127 in x1126) { x1124=x1126[x1127]; if (this._testAdfPageExistence(x1124)) { try { x1124.AdfPage.PAGE._broadcastADSConnectionStateChange(x1123); } catch(e) { AdfLogger.LOGGER.logError(e,AdfLogger.WARNING, "Error broadcasting ADS connection state to window ",x1127); } } } } AdfDhtmlPage.prototype._stopActiveData= function(x1128) { AdfAssert.assertString(x1128); delete this._activeComponents[x1128]; this._updateStopActiveDataStateChange(x1128); } AdfDhtmlPage.prototype._stopAutoPPR= function(x1129) { AdfAssert.assertString(x1129); delete this._autoPPRComponents[x1129]; AdfLogger.LOGGER.fine("Stop autoPPR active data on ",x1129); this._updateStopActiveDataStateChange(x1129,null); } AdfDhtmlPage.prototype._updateStopActiveDataStateChange= function(x1130) { var x1131=this._startADSClientIds; if (x1130 in x1131) { delete x1131[x1130]; this._startADSClientIdCount--; } else { var x1132=this._stopADSClientIds; if (!(x1130 in x1132)) { AdfLogger.LOGGER.fine("Queue ADS stop on clientID:",x1130); x1132[x1130]=true; x1132.push(x1130); this._updateDeliveryTimer(); } } } AdfDhtmlPage.prototype._updateStartActiveDataStateChange= function(x1133) { var x1134=this._startADSClientIds; var x1135=this._stopADSClientIds; if (x1135.hasOwnProperty(x1133)) { delete x1135[x1133]; AdfCollections.removeArrayValue(x1135,x1133); } else { x1134[x1133]=true; this._startADSClientIdCount++; AdfLogger.LOGGER.fine("Request start of active data on ", x1133, " startRefCount:", this._canReceiveActiveDataCount); if (this._canReceiveActiveDataCount>0) this._updateDeliveryTimer(); } } AdfDhtmlPage.prototype._setBodyCursorForActivePage= function() { if (AdfAgent.AGENT.getPlatform()!=AdfAgent.GECKO_PLATFORM) { return; } var x1136=this.getDomDocument(); var x1137=this.getResourceURL("/afr/default_arrow_black.cur"); if (AdfAgent.AGENT.getOS()==AdfAgent.WINDOWS_OS) { x1137=this.getResourceURL("/afr/default_arrow_white.cur"); } x1136.body.style.cursor="url('" + x1137 + "'), progress"; } AdfDhtmlPage.prototype._initActivePage= function() { var x1138=this.getDomWindow(); AdfAssert.assert(x1138["AdfDhtmlActiveDataSupport"], "AdfActiveDataService JavaScript feature not loaded. Please make sure it is not blocked by ad block software."); this._ads= new AdfDhtmlActiveDataSupport(); var x1139=this._getMasterWindowId(); var x1140=this._getMasterPageId(); var x1141=this._getPageId(); var x1142=null; if (!x1138.name) { x1142=this._expectedWindowId; } else { x1142=x1138.name; } if (!this._admInitialized) { this._setBodyCursorForActivePage(); this._admInitialized=true; this._initAdm(); var x1143=this._wrapMasterWindowId(x1139); if (x1139==x1142) { AdfLogger.LOGGER.info("self is master window: ",x1139); if (this._windowNameToWindow==null) { this._windowNameToWindow= new Object(); } x1138.name=x1143; this._setWindowId(x1142); this._setMasterWindowId(x1139); this._setReplaceMasterWindowId(x1139); this._setPageId(x1141); this._setMasterPageId(x1140); this._setReplaceMasterPageId(x1140); this._setMasterWindowRef(x1138); this._registerWindowWithADSMaster(x1138); this._initializeADSIFrame(); } else if (x1138.name==x1143) { this._claimMaster(x1139,x1140); } else { AdfLogger.LOGGER.info("non-master window, needs to register with: ",x1139); x1138.name=x1142; var x1144=null; var x1145=this._getADSMasterWindow(x1139); if (x1145!=null) { x1144=x1145.AdfPage.PAGE; x1144._registerWindowWithADSMaster(x1138); this._setWindowId(x1142); this._setMasterWindowId(x1139); this._setReplaceMasterWindowId(x1139); this._setPageId(x1141); this._setMasterPageId(x1140); this._setReplaceMasterPageId(x1140); this._setMasterWindowRef(x1145); } else { this._setWindowId(x1138.name); this._setPageId(x1141); this._claimMaster(x1139,x1140); } } } } AdfDhtmlPage.prototype._initAdm= function() { AdfLogger.LOGGER.fine("Initialize active data manager"); this._windowId=undefined; this._masterWindowId=undefined; this._masterWindowRef=undefined; this._replaceMasterWindowId=undefined; this._pageId=undefined; this._masterPageId=undefined; this._replaceMasterPageId=undefined; this._ESTABLISH_CHANNEL_ACTION="establishChannel"; this._RECONNECT_ACTION="reconnect"; this._POLL_EVENTS_ACTION="pollEvents"; this._ACTIVE_FRAME_NAME="afr::PushIframe"; this._ACTIVE_FORM_NAME="_activeDataForm"; this._ACTIVE_WINDOW_REGISTRY_MAP=this._windowNameToWindow; } AdfDhtmlPage.prototype._getADSMasterWindow= function(x1146) { AdfAssert.assertString(x1146); var x1147=this.getDomWindow().open("",x1146, "height=1,width=1,top=0,left=0,status=no,toolbar=no,menubar=no,location=no"); if (!this._testAdfPageExistence(x1147)|| (x1147.AdfPage.PAGE._getMasterWindowId()!=x1146)) { AdfLogger.LOGGER.warning("can't get the master window for: ",x1146); try { var x1148=x1147.location; if ((x1148==null)||(x1148=="about:blank")||(x1148=="about:Tabs")) { x1147.close(); } } catch(e) { } x1147=null; } return x1147; } AdfDhtmlPage.prototype._getRegistryMap= function() { if (this._windowNameToWindow==null) { this._windowNameToWindow= new Object(); } return this._windowNameToWindow; } AdfDhtmlPage.prototype._getWindowId= function() { return this._windowId; } AdfDhtmlPage.prototype._setWindowId= function(x1149) { this._windowId=x1149; } AdfDhtmlPage.prototype._getPageId= function() { return this._pageId; } AdfDhtmlPage.prototype._setPageId= function(x1150) { this._pageId=x1150; } AdfDhtmlPage.prototype._setMasterWindowId= function(x1151) { this._masterWindowId=x1151; } AdfDhtmlPage.prototype._getMasterWindowId= function() { return this._masterWindowId; } AdfDhtmlPage.prototype._getMasterPageId= function() { return this._masterPageId; } AdfDhtmlPage.prototype._setMasterPageId= function(x1152) { this._masterPageId=x1152; } AdfDhtmlPage.prototype._setMasterWindowRef= function(x1153) { this._masterWindowRef=x1153; } AdfDhtmlPage.prototype._setReplaceMasterWindowId= function( x1154) { this._replaceMasterWindowId=x1154; } AdfDhtmlPage.prototype._setReplaceMasterPageId= function( x1155) { this._replaceMasterPageId=x1155; } AdfDhtmlPage.prototype._getActiveFrame= function() { return this.getDomWindow().frames[this._ACTIVE_FRAME_NAME]; } AdfDhtmlPage.prototype._getClientStateMap= function() { return this._activeComponents; } AdfDhtmlPage.prototype._handleBeforeUnload= function (x1156) { var x1157=false; var x1158=undefined; if (this._warnUncommitted) { if (!this._dataDirty&& !this._hasLocalUncommitted&& this.getDomWindow()["AdfDhtmlInputBasePeer"]!=undefined) { var x1159=null; var x1160=this.getActiveComponent(); if (x1160) x1159=x1160.getPeer(); if (x1159&&x1159 instanceof AdfDhtmlInputBasePeer) { x1159.__simulateBlur(x1160); } } if (this._dataDirty||this._hasLocalUncommitted) { x1157=true; var x1161=this.getLookAndFeel(); x1158=x1161.getTranslatedString("af_document.MSG_UNCOMMITTED_DATA"); x1156.returnValue=x1158; } } this._beforeUnloadDelayed=false; if (!x1157) { this._onBeforeUnload(); } else { this._beforeUnloadDelayed=true; return x1158; } } AdfDhtmlPage.prototype._onBeforeUnload= function() { this._notifyWindowUnloaded(); var x1162=this._getMasterWindowId(); if (x1162) { if ((x1162==this._getWindowId())&&(this._handlingFailover!=true)) { this._handleADSChannelMigration(); } this.__notifyWindowCloseImmediately(false,""); } if (this._endUserMonitoringEnabled) { if (this._partialRequestRedirect==false) AdfUserActivityInfo.saveToSessionStorage(); } this.getDataTransferService().pageUnloading(); } AdfDhtmlPage.prototype._handleADSChannelMigration= function() { try { var x1163=this._adsConnectionCheckTimer; if (x1163) { try { this.cancelTimer(x1163); } catch(e) { AdfLogger.LOGGER.logErrorAsInfo(e,"Error clearing connection check timer"); } this._adsConnectionCheckTimer=null; } var x1164=this._pollingTimer; if (x1164) { try { this.cancelTimer(x1164); } catch(e) { AdfLogger.LOGGER.logErrorAsInfo(e,"Error clearing polling timer"); } this._pollingTimer=null; } var x1165=this._getRegistryMap(); var x1166=this._findYoungestWindow(x1165); if (x1166==null) { AdfLogger.LOGGER.fine("Could not find candidate window to migrate to"); return; } var x1167=x1166.AdfPage.PAGE; var x1168=x1167._getRegistryMap(); AdfCollections.copyInto(x1168,x1165); x1166.name=this._wrapMasterWindowId(x1167._getWindowId()); x1167._setReplaceMasterWindowId(this._getWindowId()); x1167._setReplaceMasterPageId(this._getPageId()); x1167._setMasterWindowId(x1167._getWindowId()); x1167._setMasterPageId(x1167._getPageId()); var x1169=x1167._getRegistryMap(); var x1170=x1167.createCallback(x1167._createADSChannel); x1166.setTimeout(x1170,50); } catch(e) { AdfLogger.LOGGER.info('Can not migrate the active channel to other windows'); } } AdfDhtmlPage.prototype._createADSChannel= function(x1171) { this._makeADSChannelRequest(true,x1171); } AdfDhtmlPage.prototype.__registerWithNewMaster= function(x1172,x1173) { AdfLogger.LOGGER.info("register with new master ",x1172); this._setMasterWindowId(x1172); this._setMasterPageId(x1173); try { var x1174=this._getADSMasterWindow(x1172); if (x1174!=null) { this._setMasterWindowRef(x1174); var x1175=x1174.AdfPage.PAGE; if (x1175!=null) { x1175._registerWindowWithADSMaster(this.getDomWindow()); var x1176=this._getRegistryMap(); var x1177=x1175._getRegistryMap(); AdfCollections.copyInto(x1177,x1176); } } else { AdfLogger.LOGGER.fine("can't find the master page " + x1172); this._claimMaster(x1172,x1173); } if (this._pushChannelState!=AdfDhtmlPage.PushChannelStates.CONNECTED) { x1175._notifyADSConnectionStateChange(AdfDhtmlPage.PushChannelStates.CONNECTED); } this._startGlobalActiveData(); } catch(e) { AdfLogger.LOGGER.info('ADS register with new master failed'); } this._windowNameToWindow=null; } AdfDhtmlPage.prototype._findYoungestWindow= function(x1178) { var x1179=undefined; var x1180=undefined; var x1181=this.getDomWindow(); for(var x1182 in x1178) { x1179=x1178[x1182]; if (x1179!=x1181) { if (this._testAdfPageExistence(x1179)) { if (!x1179.AdfPage.PAGE.isHAMigrated()) x1180=x1178[x1182]; } } } return x1180; } AdfDhtmlPage.prototype._createADSChannelParameterMap= function(x1183) { var x1184=undefined; if (this._replaceMasterWindowId==null) { this._replaceMasterWindowId=this._masterWindowId; } var x1185=undefined; if(x1183!=true) { x1185=this._ESTABLISH_CHANNEL_ACTION; } else { x1185=this._RECONNECT_ACTION; } x1184={"action":x1185, "windowId":this._windowId, "replaceMasterWindowId":this._replaceMasterWindowId, "pageId":this._pageId, "replaceMasterPageId":this._replaceMasterPageId}; return x1184; } AdfDhtmlPage.prototype._createADSClientStateMap= function(x1186) { var x1187= new Object; if (x1186) { var x1188=this._getRegistryMap(); for(var x1189 in x1188) { var x1190=x1188[x1189]; try{ if (this._testAdfPageExistence(x1190)) { var x1191=x1190.AdfPage.PAGE; var x1192=x1191._getPageId(); var x1193=x1189 + ":" + x1192; x1187[x1193]=x1191._getClientStateMap(); } } catch(e) { AdfLogger.LOGGER.logErrorAsInfo(e,"Could not access active page:" + x1189); } } } else { var x1194=this.getDomWindow(); try{ if (this._testAdfPageExistence(x1194)) { x1187[this._getWindowId()]=this._getClientStateMap(); } } catch(e) { AdfLogger.LOGGER.logErrorAsInfo(e,"Could not access active page:" + x1194.name); } } return x1187; } AdfDhtmlPage.prototype._makeADSChannelRequest= function(x1195,x1196) { var x1197=this._createADSChannelParameterMap(x1196); var x1198= new Object(); var x1199=this.getDomWindow().frames[this._ACTIVE_FRAME_NAME]; this._notifyADSConnectionStateChange(AdfDhtmlPage.PushChannelStates.RECONNECTING); this._sendADSChannelRequest(x1197,x1198); } AdfDhtmlPage.prototype._claimMaster= function(x1200,x1201) { AdfAssert.assertString(x1200); AdfAssert.assertString(x1201); var x1202=this._getWindowId(); var x1203=this._getPageId(); if (this._windowNameToWindow==null) { this._windowNameToWindow= new Object(); } this._setMasterWindowId(x1202); this._setReplaceMasterWindowId(x1200); this._setMasterPageId(x1203) this._setReplaceMasterPageId(x1201); var x1204=this.getDomWindow(); this._setMasterWindowRef(x1204); this._registerWindowWithADSMaster(x1204); this._createADSChannel(); } AdfDhtmlPage.prototype._wrapMasterWindowId= function(x1205) { var x1206=x1205.replace(/\//g,"S").replace(/-/g,"M").replace(/\./g,"D"); return x1206; } AdfDhtmlPage.prototype._testAdfPageExistence= function(x1207) { var x1208=null; try { x1208=x1207.AdfPage.PAGE; } catch(e) { AdfLogger.LOGGER.logErrorAsInfo(e,"Could not access active window"); } if (x1208!=null) { return true; } else { return false; } } AdfDhtmlPage.PushChannelStates={ CONNECTED:0, CONNECTING:1, DISCONNECTED:2, RECONNECTING:3 }; AdfDhtmlPage._DEFAULT_ACTIVEDATA_CONFIG={ "restartInterval":15, "maxReconnectionRetries":10, "reconnectWaitTime":10000, "latencyThreshold":10000, "transport":"STREAMING", "pollingInterval":5000, "keepAliveInterval":10000 } AdfDhtmlPage.prototype.__initLongPolling= function() { var x1209={"action":this._POLL_EVENTS_ACTION, "windowId":this._getWindowId(), "pageId":this._getPageId()}; this._sendADSChannelRequest(x1209,null); this.__setConnected(); } AdfDhtmlPage.prototype.__setConfiguration= function(x1210) { try { this._transport=x1210.transport; this._pollingInterval=x1210.pollingInterval; this._maxReconnectionRetries=x1210.maxReconnectionRetries; this._reconnectWaitTime=x1210.reconnectWaitTime; this._latencyThreshold=x1210.latencyThreshold; this._restartInterval=x1210.restartInterval; this._keepAliveInterval=x1210.keepAliveInterval; } catch(e) { AdfLogger.LOGGER.warning('Exception occurred while setting configuration. Name: ' + e.name + ", Message: " + e.message); } } AdfDhtmlPage.prototype.__refreshPushComponent= function(x1211,x1212,x1213) { AdfAssert.assertString(x1211); AdfAssert.assertString(x1212); AdfAssert.assertString(x1213); this._lastActiveDataActivityTime= new Date().getTime(); var x1214=null; var x1215=this._windowNameToWindow; if (x1215!=null) { x1214=x1215[x1211]; } if (this._testAdfPageExistence(x1214)) { try { x1214.AdfPage.PAGE._refreshPushComponent(x1213); } catch(e) { AdfLogger.LOGGER.fine("can't access the window ",x1211); } } else { AdfLogger.LOGGER.info("No window found for refreshing component: windowId = ",x1211); } } AdfDhtmlPage.prototype._sendADSChannelRequest= function ( x1216, x1217) { var x1218=this.getDomWindow(); var x1219=this._ACTIVE_FRAME_NAME; var x1220=x1218.frames[x1219]; var x1221=""; for(var x1222 in x1216) { x1221+="&" + x1222 + "=" + x1216[x1222]; } var x1223=1; var x1224="pageKey"; var x1225="componentId"; var x1226="componentIndex"; for(var x1227 in x1217) { var x1228=x1217[x1227]; if(!AdfCollections.isEmpty(x1228)) { x1221+="&" + x1224+x1223 + "=" + x1227; for(var x1229 in x1228) { var x1230=x1225+x1223; var x1231=x1226+x1223; x1221+="&" + x1230 + "=" + x1229; x1221+="&" + x1231 + "=" + x1228[x1229].changeCount; } } x1223=x1223 + 1; } var x1232=x1221.indexOf('&') if (x1221.length>0&&x1232==0) { x1221=x1221.substring(1); } var x1233=this._ACTIVE_FORM_URL + "?" + x1221; if(this._transport=="STREAMING") { if (x1233.length>2000) { var x1234= new Array(); this._handleAllFailovers(x1234); } x1220.location.replace(x1233); } else { var x1235=this.getDataTransferService(false,true); x1235.sendPollingRequest(x1233,[this._ads]); } } AdfDhtmlPage.prototype.__setServerTimestamp= function(x1236) { this._serverTimeDifference=AdfDhtmlPage._getTimeDifference(x1236); if (this._perfProfileEnabled) { AdfLogger.PROFILER_LOGGER.info('ADS: Server time difference: ',this._serverTimeDifference,';;'); } } AdfDhtmlPage._getTimeDifference= function (x1237) { if (x1237==null) { return 0; } var x1238= new Date(x1237); var x1239= new Date(); return (x1239 - x1238); } AdfDhtmlPage.prototype._getMilliSecondsBehind= function (x1240) { return AdfDhtmlPage._getTimeDifference(x1240) - this._serverTimeDifference; } AdfDhtmlPage.prototype.__recordActiveDataActivity= function () { var x1241= new Date().getTime(); this._lastActiveDataActivityTime=x1241; AdfLogger.LOGGER.finer(x1241,': got keep alive'); } AdfDhtmlPage.prototype._handleDisconnect= function() { AdfLogger.LOGGER.finer("ADS Channel Disconnected"); this._reconnectRetries=0; if (this._isWindowClosing) { AdfLogger.LOGGER.finer("Closing window ... will not try to reconnect"); return; } this._notifyADSConnectionStateChange(AdfDhtmlPage.PushChannelStates.RECONNECTING); this.scheduleTimer(this,this._reconnect,null,this._reconnectWaitTime); } AdfDhtmlPage.prototype.__setConnected= function() { AdfLogger.LOGGER.finer("ADS Channel Connected"); this._notifyADSConnectionStateChange(AdfDhtmlPage.PushChannelStates.CONNECTED); if (this._transport=="POLLING") { this._pollSucceeded=true; } this._reconnectRetries=0; this._lastActiveDataActivityTime=0; var x1242=this._getPageId(); this._setMasterPageId(x1242); this._setReplaceMasterPageId(x1242); var x1243=this._getWindowId(); this._setMasterWindowId(x1243); this._setReplaceMasterWindowId(x1243); if (this._transport=="POLLING") { this._startPolling(); } else { var x1244=this.getDomWindow(); this._prepareAdsConnectionTimer(); } this.__perfTimings(false,false,false,"ADS channel connected"); } AdfDhtmlPage.prototype._prepareAdsConnectionTimer= function() { if (this._adsConnectionCheckTimer) { this.cancelTimer(this._adsConnectionCheckTimer); } var x1245=this._latencyThreshold + this._keepAliveInterval; this._adsConnectionCheckTimer=this.scheduleTimer(this,this._checkAdsConnection,null,x1245); } AdfDhtmlPage.prototype._checkAdsConnection= function() { var x1246=this._latencyThreshold; var x1247=this._keepAliveInterval; if (this._pushChannelState==AdfDhtmlPage.PushChannelStates.CONNECTED) { var x1248=AdfDhtmlPage._getTimeDifference(this._lastActiveDataActivityTime); if (x1248>(x1246 + x1247)) { this._handleDisconnect(); } } return x1246 + x1247; } AdfDhtmlPage.prototype._pollForEvents= function() { var x1249={"action":this._POLL_EVENTS_ACTION, "windowId":this._getWindowId(), "pageId":this._getPageId()}; var x1250=this._createADSClientStateMap(true); this._lastPollTime= new Date().getTime(); var x1251; if (this._pollSucceeded) { x1251=AdfDhtmlPage.PushChannelStates.CONNECTING; } else { x1251=AdfDhtmlPage.PushChannelStates.RECONNECTING; } this._notifyADSConnectionStateChange(x1251); this._pollSucceeded=false; this._sendADSChannelRequest(x1249,x1250); } AdfDhtmlPage.prototype._reconnect= function() { if (this._isWindowClosing) { this._reconnectRetries=0; return; } AdfLogger.LOGGER.fine("Reconnect called ",(this._reconnectRetries + 1)," time(s)"); if (this._pushChannelState!=AdfDhtmlPage.PushChannelStates.CONNECTED) { if (this._reconnectRetries3) { var x1252=this.getDomWindow(); x1252.stop(); } this._createADSChannel(true); this.scheduleTimer(this,this._reconnect,null,this._reconnectWaitTime); } else { AdfLogger.LOGGER.warning("Cannot connect. Exceeded number of retries for reconnection"); this._notifyADSConnectionStateChange(AdfDhtmlPage.PushChannelStates.DISCONNECTED); } } } AdfDhtmlPage.prototype.getADSConnectionState= function () { return this._pushChannelState; } AdfDhtmlPage.prototype.addADSConnectionStateListener= function (x1253,x1254) { AdfAssert.assertFunction(x1253); AdfAssert.assertObjectOrNull(x1254); var x1255=this._adsConnectionStateListeners; if (!x1255) { x1255= new Array(); this._adsConnectionStateListeners=x1255; } x1255.push(x1253,x1254); } AdfDhtmlPage.prototype.removeADSConnectionStateListener= function (x1256,x1257) { AdfAssert.assertFunction(x1256); AdfAssert.assertObjectOrNull(x1257); var x1258=this._adsConnectionStateListeners; AdfAssert.assert(x1258,"adsConnectionStateListeners array must exist"); var x1259=x1258.length; for(var x1260=0;x12600) { var x1267= new AdfPropertyChangeEvent(this, "adsConnectionState",x1264,x1263); for(var x1268=0;x1268this._maxReconnectionRetries) { AdfLogger.LOGGER.warning("Cannot connect. Exceeded number of retries for reconnection"); this._notifyADSConnectionStateChange(AdfDhtmlPage.PushChannelStates.DISCONNECTED); return; } } this._notifyADSConnectionStateChange(AdfDhtmlPage.PushChannelStates.CONNECTED); var x1271= new Date(); var x1272=this._pollingInterval; if (this._lastPollTime!=null) { x1272=x1271.getTime() - this._lastPollTime; } var x1273=(AdfAgent.AGENT.getPlatform()==AdfAgent.GECKO_PLATFORM); var x1274=(this._pollingInterval - x1272<=200); if (x1272>=this._pollingInterval||(x1273&&x1274)) { if (this._pollingTimer!=null) { try { clearTimeout(this._pollingTimer); } catch(e){} this._pollingTimer=null; } this._pollForEvents(); this._pollingTimer=this.scheduleTimer(this,this._startPolling,null,this._pollingInterval); } else { if (this._pollingTimer==null) { AdfLogger.LOGGER.finer("no timer exists; scheduling timer for ",x1272); this._pollingTimer=setTimeout(this._startPolling,x1272); } else { AdfLogger.LOGGER.finer("timer exists; doing nothing because diff = ",x1272, " is less than ",this._pollingInterval); } } } AdfDhtmlPage.prototype._fixupLinkOnClick= function(x1275) { delete this._notifyOfUnloadUrl; while(x1275!=null) { if (x1275.nodeName=="A") break; x1275=x1275.parentNode; } if (x1275!=null) { var x1276=x1275.href; if (x1276==null) return; var x1277=x1275.getAttribute("href"); if (x1277&&(x1277.indexOf("#")==0)) return; this._notifyOfUnloadUrl=x1276; } } AdfDhtmlPage.prototype.setStreamingDisabled= function(x1278) { this._streamingDisabled=x1278; } AdfDhtmlPage.prototype.isStreamingDisabled= function() { return this._streamingDisabled; } AdfDhtmlPage.prototype.sendStreamingRequest= function(x1279) { var x1280=this.getDomDocument().forms[0]; AdfAssert.assert(x1280,"No form found; cannot stream data"); var x1281=this._getPPRURL(x1280); var x1282= new Object(); this._addPendingStreamingIDs(x1279,x1282); AdfDhtmlPage._addStateParameter(x1280,x1282); this._streamingStatus=AdfDhtmlPage._STREAMING_REQUEST_SENT; this._stopGlobalActiveData(); if (this._endUserMonitoringServiceEnabled) { var x1283=AdfUserActivityInfo.getInstance(AdfUserActivityInfo._SECONDARY); x1283.setClientStartTime(new Date().getTime().toString()); AdfUserActivityInfo.saveToSessionStorageByType(AdfUserActivityInfo._SECONDARY); } this.getDataTransferService().sendStreamingRequest(x1281,x1282); if (this._perfProfileEnabled||this._perfProfileTimingEnabled) this.getDomWindow()._afrTimingStreamingRequestStart= new Date().getTime(); } AdfDhtmlPage._addStateParameter= function(x1284,x1285) { var x1286=AdfDhtmlPage._STATE_PARAM_NAME; var x1287=x1284[x1286]; AdfAssert.assert(x1287,"No view state token for postback"); x1285[x1286]=x1287.value; } AdfDhtmlPage.prototype.getLazyFetchURI= function(x1288) { AdfAssert.assertString(x1288,"invalid Id for the lazy fetch URI"); var x1289=this.getDomDocument().forms[0]; AdfAssert.assert(x1289,"No form found; cannot perform lazy fetch"); var x1290=x1289.action; if (x1290.indexOf('?')== -1) x1290+='?unique='; else x1290+='&unique='; x1290+= new Date().getTime(); var x1291=AdfDhtmlPage._STATE_PARAM_NAME; x1290+=('&' + x1291 + '='); var x1292=x1289[x1291]; AdfAssert.assert(x1292,"No view state token for lazy fetch"); x1290+=x1292.value; x1290+=('&' + AdfDhtmlPage._LAZY_FETCH_ID_PARAM + '=' + x1288); return x1290; } AdfDhtmlPage.prototype.isStreamingRequestPending= function(x1293) { return this._pendingStreamingIDs[x1293]; } AdfDhtmlPage.prototype._addPendingStreamingIDs= function(x1294,x1295) { var x1296=','; var x1297=""; var x1298= new Array(); var x1299= new Array(); var x1300=x1294.split(x1296); for(var x1301=0;x13010) x1297=x1298.join(x1296); x1295[AdfDhtmlPage._STREAMING_IDS_PARAM]=x1297; if (x1299.length>0) { x1295[AdfDhtmlPage._REMOVED_STREAMING_IDS_PARAM]=x1299.join(x1296); } } AdfDhtmlPage._getCookie= function(x1304,x1305) { if (x1304.cookie.length>0) { var x1306=x1304.cookie.indexOf(x1305 + "="); if (x1306!= -1) { var x1307=x1304.cookie.indexOf(";",x1306); if (x1307== -1) x1307=x1304.cookie.length; return x1304.cookie.substring(x1306 + x1305.length + 1,x1307); } } return null; } AdfDhtmlPage._setCookie= function(x1308,x1309,x1310,x1311,x1312) { AdfAssert.assertNumeric(x1311); var x1313=""; if (x1311) { var x1314= new Date(); x1314.setTime(x1314.getTime() + x1311); x1313="expires=" + x1314.toGMTString() + ";"; } if (x1312) { x1312="path=" + x1312 + ";"; } else { x1312="path=/;"; } x1308.cookie=x1309 + "=" + x1310 + ";" + x1313 + x1312; } AdfDhtmlPage._eraseCookie= function(x1315,x1316) { this.setCookie(x1315,x1316,"", -99999); } AdfDhtmlPage.prototype._dtsStateChanged= function() { var x1317=this.getDataTransferService(); var x1318=x1317.getDTSState(); var x1319=x1318!=AdfDataTransferService.STATE_READY; if (this._serverBusy!=x1319) { this._serverBusy=x1319; AdfAgent.AGENT.showBusyCursor(this.getDomDocument(),x1319); this._broadcastBusyStateEvent(x1319); } if (!x1319) this._deliverQueuedServerEvents(); } AdfDhtmlPage.prototype.setLastFocusedElement= function(x1320) { this._lastFocusedElement=x1320; } AdfDhtmlPage.prototype.getLastFocusedElement= function(x1321) { return this._lastFocusedElement; } AdfDhtmlPage.prototype.setPPRNavigationOptions= function(x1322) { this._pprNavOptions=x1322; } AdfDhtmlPage.prototype.getPPRNavigationOptions= function() { return (this._pprNavOptions!=undefined)?this._pprNavOptions:0; } AdfDhtmlPage.prototype._collectLoadedLibraries= function() { var x1323= new Object(); var x1324=this.getDocument(); var x1325=x1324.getElementsByTagName("script"); for(var x1326=0;x1326=0; --x1365) { var x1366=x1363[x1365]; if (x1366.getAttribute('afrres')=='true') { x1362.removeChild(x1366); } } } x1360('LINK',x1359); x1360('STYLE',x1359); } AdfDhtmlPage.prototype._handleInvalidPprResponse= function(x1367) { if (x1367) { var x1368=AdfDhtmlPage._extractInstructionXML(x1367,"error"); if (x1368!=null) { this._handleRichResponse(x1368,null); return; } var x1369=AdfDhtmlPage._extractInstructionXML(x1367,"redirect"); if (x1369!=null) { this._handleRichResponse(x1369,null); return; } } if (AdfAssert.DEBUG) { AdfLogger.LOGGER.severe("Unexpected non-rich response"); } else { AdfLogger.LOGGER.warning("Unexpected non-rich response"); } this.getDomWindow().location.reload(true); } AdfDhtmlPage._extractInstructionXML= function(x1370,x1371) { var x1372=x1370.length; if (x1372<=1) return null; if (x1370.charAt(x1372-1)!='>') return null; var x1373=null; var x1374="x1375 + 1) { if (x1374==x1370.substr(x1372 - x1375 - 1,x1375)) { var x1376=x1370.lastIndexOf("=0) { x1373=AdfAgent.AGENT.parseXML(x1370.substring(x1376)); } } } return x1373; } AdfDhtmlPage.prototype.__failover= function(x1377) { this._handlingFailover=true; this._handleAllFailovers(x1377); } AdfDhtmlPage.prototype._handleFailover= function() { this.__setHAMigrated(false); var x1378=this.getDomWindow(); x1378.location.reload(true); } AdfDhtmlPage.prototype._handleAllFailovers= function(x1379) { var x1380=this._getRegistryMap(); var x1381=undefined; var x1382=this.getDomWindow(); var x1383=undefined; if (!AdfCollections.isArray(x1379)) { var x1384=x1379; x1379= new Array(); x1379=x1379.concat(x1384); } for(var x1385 in x1380) { if (AdfCollections.indexOf(x1379,x1385)== -1) { x1381=x1380[x1385]; if (x1381!=x1382) { if (this._testAdfPageExistence(x1381)) { var x1386=x1381.AdfPage.PAGE; if (!x1386.isHAMigrated()) { x1386._handleFailover(); } } } else { x1383=true; } } } if(x1383&&this._testAdfPageExistence(x1382)) { var x1387=x1382.AdfPage.PAGE; x1387._handleFailover(); } } AdfDhtmlPage.prototype.__setHAMigrated= function(x1388) { AdfAssert.assertBoolean(x1388); this._haMigrated=x1388; } AdfDhtmlPage.prototype.isHAMigrated= function() { return this._haMigrated; } AdfDhtmlPage.prototype.__initUncommittedDataWarningForDocument= function(x1389) { this._warnUncommitted=x1389; this._resetUncommittedIds(); } AdfDhtmlPage.prototype._resetUncommittedIds= function() { if (this._warnUncommitted) { this._hasLocalUncommitted=false; this._uncommittedIds= new Object(); } } AdfDhtmlPage.prototype._reloadPage= function() { var x1390=this.getDomWindow(); var x1391=x1390.location.href; if (x1391.indexOf('?')== -1) x1391+='?'; else x1391+='&'; x1391+="_afr.ts="; x1391+= new Date().getTime(); x1390.location.replace(x1391); } AdfDhtmlPage.prototype.__handleCachedPageForNewWindow= function(x1392) { if (AdfAgent.IE_PLATFORM==AdfAgent.AGENT.getPlatform()&&(!window.name)) { var x1393=this.getDomWindow().location.href; var x1394=null; var x1395=x1393.indexOf("?"); if (x1395>0) { x1394=x1393.substring(x1395); } if (x1394&&x1394.match(/_afr.ts=\d*$/)) { AdfLogger.LOGGER.warning("Two or more opened browser windows share same name and same ADF states!"); return false; } else { this._reloadPage(); return true; } } return false; } AdfDhtmlPage.prototype.__initPollingTimeout= function(x1396) { var x1397=this.__getPollHelper(); if (x1397) { if (this._pollingTimeoutState==AdfDhtmlPage.PollingTimeoutStates.NONE) { x1397.initializePollingTimeout(x1396); this._pollingTimeoutState=AdfDhtmlPage.PollingTimeoutStates.STARTED; } } } AdfDhtmlPage.prototype.__getPollHelper= function() { if (this._pollHelper!==undefined) { return this._pollHelper; } else { var x1398=this.getDomWindow(); if (x1398["AdfDhtmlPollPeer"]!==undefined) { this._pollHelper= new AdfPollHelper(); } return this._pollHelper; } } AdfDhtmlPage.prototype.getComponentIdsUpdatedByPollEvent= function() { return this._componentsUpdatedByPollEvent; } AdfDhtmlPage.prototype.getTimeoutWarningWindowState= function() { return this._timeoutWarningWindowState; } AdfDhtmlPage.prototype.__recordSessionTimeout= function(x1399,x1400,x1401) { this._timeout=x1399; this._warningBeforeTimeout=x1400; this._newSessionURL=x1401; if (this._timeoutWarningTimer) { this.cancelTimer(this._timeoutWarningTimer); this._timeoutWarningTimer=null; } if (this._timeoutTimer) { this.cancelTimer(this._timeoutTimer); this._timeoutTimer=null; } if (this._warningBeforeTimeout>0) { this._timeoutWarningTimer=this.scheduleTimer(this, this._alertTimeoutWarning, null, this._timeout-this._warningBeforeTimeout); this._timeoutWarningWindowState=AdfDhtmlPage.TimeoutWarningWindowStates.NONE; } } AdfDhtmlPage.prototype._alertTimeoutWarning= function() { this._timeoutWarningTimer=null; if (this._timeoutTimer) { this.cancelTimer(this._timeoutTimer); this._timeoutTimer=null; } var x1402=AdfPage.PAGE.getLookAndFeel(); var x1403; if (this._warningBeforeTimeout>=60000) { x1403=x1402.getTranslatedString("af_document.PRE_SESSION_TIMEOUT_MSG", Math.floor(this._warningBeforeTimeout/60000)); } else { x1403=x1402.getTranslatedString("af_document.PRE_SESSION_TIMEOUT_MSG_SECOND", this._warningBeforeTimeout/1000); } var x1404=x1402.getTranslatedString("af_document.PRE_SESSION_TIMEOUT_CONFIRM_TITLE"); if (x1404==null) x1404="Expiration Warning"; var x1405=this.createCallback(this._handleSessionTimeoutConfirm); this._preSessionTimeoutWarningTime= new Date().getTime(); this._confirm(x1404,x1403,x1405,this._warningBeforeTimeout,true); return -1; } AdfDhtmlPage.prototype._handleSessionTimeoutConfirm= function(x1406) { if (x1406.getOutcome()==AdfDialogEvent.OUTCOME_OK) { this._touchServerSession(); this._timeoutWarningWindowState=AdfDhtmlPage.TimeoutWarningWindowStates.NONE; if (this._timeoutTimer) { this.cancelTimer(this._timeoutTimer); this._timeoutTimer=null; } if (this._timeoutWarningTimer) this.cancelTimer(this._timeoutWarningTimer); this._timeoutWarningTimer= this.scheduleTimer(this,this._alertTimeoutWarning,null,this._timeout-this._warningBeforeTimeout); } else if (x1406.getOutcome()==AdfDialogEvent.OUTCOME_CANCEL) { this._timeoutWarningWindowState=AdfDhtmlPage.TimeoutWarningWindowStates.CANCEL; var x1407= new Date().getTime(); var x1408=this._warningBeforeTimeout - (x1407 - this._preSessionTimeoutWarningTime); this._preSessionTimeoutWarningTime=null; this._timeoutTimer=this.scheduleTimer(this,this._alertTimeout,null,x1408); } } AdfDhtmlPage.prototype._alertTimeout= function() { if (this._timeoutWarningTimer) { this.cancelTimer(this._timeoutWarningTimer); this._timeoutWarningTimer=null; } var x1409=AdfPage.PAGE.getLookAndFeel(); var x1410=x1409.getTranslatedString("af_document.POST_SESSION_TIMEOUT_MSG"); if (this._newSessionURL) { x1410+=" " + x1409.getTranslatedString("af_document.POST_SESSION_TIMEOUT_MSG_CONTINUE"); } var x1411=x1409.getTranslatedString("af_document.POST_SESSION_TIMEOUT_ALERT_TITLE"); if (x1411==null) x1411="Page Expired"; var x1412=this.createCallback(this._handleSessionTimeoutAlert); this._alert(x1411,x1410,x1412); } AdfDhtmlPage.prototype._handleSessionTimeoutAlert= function(x1413) { if (this._newSessionURL) { this.getDomWindow().location.replace(this._newSessionURL); } else { var x1414=AdfPage.PAGE.getLookAndFeel(); var x1415=x1414.getTranslatedString("af_document.POST_SESSION_TIMEOUT_MSG"); this.getDomDocument().innerHTML=x1415; } } AdfDhtmlPage.prototype._touchServerSession= function() { var x1416=null; var x1417=null; x1417=this.getDomDocument().location.href; var x1418= new AdfXMLRequest(); x1418.setSynchronous(true); x1418.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x1418.setRequestHeader('oracle.adf.view.rich.touchSession',true); x1418.send(x1417,x1416); x1418.cleanup(); } AdfDhtmlPage.prototype._confirm= function(x1419,x1420,x1421,x1422,x1423) { this._timeoutWarningWindowState=AdfDhtmlPage.TimeoutWarningWindowStates.LAUNCHED; AdfAssert.assertString(x1419,"confirm title"); AdfAssert.assertString(x1420,"confirm message"); AdfAssert.assertFunction(x1421,"confirm callback"); if (x1422) AdfAssert.assertNumber(x1422,"confirm timeout"); var x1424=this.findComponent(this._documentClientId); var x1425=x1424.getPeer(); x1425.bind(x1424); return x1425.__showAlertConfirm(x1423,x1419,x1420,x1421,x1422); } AdfDhtmlPage.prototype._alert= function(x1426,x1427,x1428) { AdfAssert.assertString(x1426,"alert title"); AdfAssert.assertString(x1427,"alert message"); AdfAssert.assertFunction(x1428,"alert callback"); var x1429=this.findComponent(this._documentClientId); var x1430=x1429.getPeer(); x1430.bind(x1429); return x1430.__showAlertConfirm(true,x1426,x1427,x1428); } AdfDhtmlPage.prototype._displayUncommittedDataWarning= function() { return confirm(this.getLookAndFeel().getTranslatedString("af_document.MSG_CONFIRM_NAVIGATION")); } AdfDhtmlPage.prototype._logAsGlobalError= function (x1431) { if (window.onerror!=undefined) { this._handleGlobalError(x1431.message,x1431.fileName,x1431.lineNumber); } } AdfDhtmlPage.prototype._handleGlobalError= function(x1432,x1433,x1434) { if (!this._savedErrors) { this._savedErrors= new Array(); } var x1435=false; if (x1432=="setting a property that has only a getter"&&x1433==""&&x1434==0) x1435=true; if(AdfAgent.AGENT.getPlatform()==AdfAgent.GECKO_PLATFORM&&x1432!=undefined) { if(x1433==""&&x1434==0&&x1432.match(/Permission denied for to call method Location.toString on 0) { var x1436="Javascript error(s): "; for(var x1437=0;x14370) { x1436+=";"; } var x1438=this._savedErrors[x1437]; x1436+=x1438.msg; if (x1438.url) { x1436+=(" in " + x1438.url); } if(x1438.line!==undefined&&x1438.line!==null) { x1436+=(":" + x1438.line); } } throw x1436; } } function AdfDhtmlRichDialogService() { this.Init(); } AdfObject.createSubclass(AdfDhtmlRichDialogService); AdfDhtmlRichDialogService.getInstance= function() { if(this._theInstance==null) this._theInstance= new AdfDhtmlRichDialogService(); return this._theInstance; } AdfDhtmlRichDialogService.dialogExists= function(x0) { return (AdfDhtmlRichDialogService._getDialogStateToken(x0)?true:false); } AdfDhtmlRichDialogService.prototype.launchWindow= function(x1,x2,x3,x4) { AdfAssert.assertString(x1); AdfAssert.assertString(x2); AdfAssert.assertObject(x3); AdfAssert.assertStringOrNull(x4); var x5=AdfPage.PAGE; try { AdfDhtmlRichDialogService._setBusy(true); var x6=AdfDhtmlRichDialogService._generateRtnId(); var x7=AdfDhtmlRichDialogService._normalizeLaunchSourceId(x4); AdfDhtmlRichDialogService._installBeforeUnloadHandler(); var x8=x3.windowModalityType &&x3.windowModalityType==AdfDhtmlRichDialogService._WINDOW_MODALITY_TYPE_APPLICATION_MODAL ?true:false; var x9={launchSourceId:x7,modal:x8,windowName:x2,rtnId:x6}; AdfDhtmlRichDialogService._setDialogStateToken(x6,x9); if (x8) { AdfDhtmlRichDialogService._showModalGlass(); } var x10=AdfDhtmlRichDialogService._openWindow(x1,x2,x3,x6); x9.childWindow=x10; AdfDhtmlRichDialogService._setDialogStateToken(x6,x9); x5.scheduleTimer(x5,AdfDhtmlRichDialogService._setWindowFocus,x6,100); } finally { AdfDhtmlRichDialogService._setBusy(false); } } AdfDhtmlRichDialogService.prototype.launchInline= function(x11) { AdfAssert.assertString(x11); var x12=AdfPage.PAGE; try { AdfDhtmlRichDialogService._setBusy(true); var x13=x12.findComponent(x11); AdfAssert.assertPrototype(x13,AdfRichPopup); x13.addEventListener(AdfPopupOpenedEvent.POPUP_OPENED_EVENT_TYPE, AdfDhtmlRichDialogService._popupOpenedHandler); x13.addEventListener(AdfPopupClosedEvent.POPUP_CLOSED_EVENT_TYPE, AdfDhtmlRichDialogService._popupClosedHandler); var x14=x13.getPeer(); x14.bind(x13); var x15=x13.getProperty("_rtnId"); var x16=x13.getProperty("_launchId"); var x17=x13.getProperty("_inlineFrameId"); var x18=x13.getProperty("_isCancellationDisabled"); var x19=AdfDhtmlRichDialogService._normalizeLaunchSourceId(x16); AdfDhtmlRichDialogService._installBeforeUnloadHandler(); var x20={launchSourceId:x19,popupId:x11,frameName:x17,rtnId:x15}; AdfDhtmlRichDialogService._setDialogStateToken(x15,x20); var x21={}; if (x19) { x21[AdfRichPopup.HINT_LAUNCH_ID]=x19; } if (x18) { x21[AdfDhtmlPopupWindow.HINT_CLOSE_ON_ESCAPE]=false; } x13.show(x21); } finally { AdfDhtmlRichDialogService._setBusy(false); } } AdfDhtmlRichDialogService.prototype.returnFrom= function(x22) { var x23=AdfDhtmlRichDialogService._getDialogStateToken(x22); if (!x23) { AdfLogger.LOGGER.warning("dialog state missing or already returned for rtnId:",x22); return; } try { AdfDhtmlRichDialogService._setBusy(true); if (!x23.popupId) { if (!AdfDhtmlRichDialogService._closeWindow(x23)) { x23.isReturnFromPending=true; return; } AdfDhtmlRichDialogService._queueReturnEvent(x23); AdfDhtmlRichDialogService._notifyWindowClosed(x22); if (x23.modal) { AdfDhtmlRichDialogService._hideModalGlass(); } } else { AdfDhtmlRichDialogService._hidePopup(x23); AdfDhtmlRichDialogService._queueReturnEvent(x23); } AdfDhtmlRichDialogService._removeDialogStateToken(x22); AdfDhtmlRichDialogService._uninstallBeforeUnloadHandler(); } finally { AdfDhtmlRichDialogService._setBusy(false); } } AdfDhtmlRichDialogService.prototype.checkForWindowCanceled= function(x24) { AdfAssert.assertNumeric(x24); var x25=AdfDhtmlRichDialogService._getDialogStateToken(x24); if (!x25) { return; } try { AdfDhtmlRichDialogService._setBusy(true); var x26=x25.childWindow; if (x26.closed) { if (x25.modal) { AdfDhtmlRichDialogService._hideModalGlass(); } if (x25.isReturnFromPending) { AdfDhtmlRichDialogService._queueReturnEvent(x25); } AdfDhtmlRichDialogService._removeDialogStateToken(x24); AdfDhtmlRichDialogService._uninstallBeforeUnloadHandler(); AdfDhtmlRichDialogService._notifyWindowClosed(x24); } else { var x27=AdfPage.PAGE; x27.scheduleTimer(x27,AdfDhtmlRichDialogService.getInstance().checkForWindowCanceled,x24,100); } } finally { AdfDhtmlRichDialogService._setBusy(false); } } AdfDhtmlRichDialogService._setBusy= function(x28) { AdfDhtmlRichDialogService.getInstance().Busy=x28; } AdfDhtmlRichDialogService.isBusy= function() { if (AdfDhtmlRichDialogService.getInstance().Busy) return true; var x29=AdfDhtmlRichDialogService.getInstance().StateMap; if (x29) { for(rtnId in x29) { var x30=x29[rtnId]; if (x30&&x30.isReturnFromPending) return true; } } return false; } AdfDhtmlRichDialogService.prototype.cancelAll= function() { var x31=AdfDhtmlRichDialogService.getInstance().StateMap; if (x31) { for(rtnId in x31) { AdfDhtmlRichDialogService._cancel(rtnId); } } } AdfDhtmlRichDialogService.prototype.__visitWindows= function(x32) { var x33=AdfDhtmlRichDialogService.getInstance().StateMap; if (x33) { for(rtnId in x33) { var x34=x33[rtnId]; if (x34) { x32(x34); } } } } AdfDhtmlRichDialogService._setWindowFocus= function(x35) { AdfAssert.assertNumeric(x35); var x36=AdfDhtmlRichDialogService._getDialogStateToken(x35); if (!x36) { return; } x36.childWindow.focus(); } AdfDhtmlRichDialogService._cancel= function(x37) { AdfAssert.assertNumeric(x37); var x38=AdfDhtmlRichDialogService._getDialogStateToken(x37); if (!x38) { return; } if (!x38.popupId) { AdfDhtmlRichDialogService._closeWindow(x38); if (x38.modal) { AdfDhtmlRichDialogService._hideModalGlass(); } } else { AdfDhtmlRichDialogService._cancelPopup(x38); } AdfDhtmlRichDialogService._removeDialogStateToken(x37); AdfDhtmlRichDialogService._uninstallBeforeUnloadHandler(); AdfDhtmlRichDialogService._notifyWindowClosed(x37); } AdfDhtmlRichDialogService._queueReturnEvent= function(x39) { AdfAssert.assertObject(x39); var x40=x39.launchSourceId; if (!x40) { return; } var x41=AdfPage.PAGE.findComponent(x40); if (x41) { new AdfReturnEvent(x41).queue(); x41.focus(); } } AdfDhtmlRichDialogService._normalizeLaunchSourceId= function(x42) { if (!x42||x42.length==0) return null; var x43=AdfPage.PAGE; var x44=x43.findComponent(x42); if (!x44) { var x45=x42.lastIndexOf(":"); if (x45!= -1) { var x46=x42.lastIndexOf(":",x45 - 1); if (x46!= -1) { var x47=x42.substring(0,x46); var x48=x43.findComponent(x47); if (x48&&window["AdfUICollection"]&&x48 instanceof AdfUICollection) { var x49=x42.substring(x45); var x50=x47.concat(x49); if (x43.findComponent(x50)) { return x50; } } } } } return x42; } AdfDhtmlRichDialogService._generateRtnId= function() { return (new Date()).getTime(); } AdfDhtmlRichDialogService._closeWindow= function(x51) { AdfAssert.assertObject(x51); var x52=x51.childWindow; x52.close(); return x52.closed; } AdfDhtmlRichDialogService._hidePopup= function(x53) { var x54=x53.popupId; AdfAssert.assertString(x54); var x55=AdfPage.PAGE.findComponent(x54); AdfAssert.assertPrototype(x55,AdfRichPopup); if (x55) { AdfDhtmlRichDialogService._unloadDocument(x55); x55.hide(); } } AdfDhtmlRichDialogService._cancelPopup= function(x56) { var x57=x56.popupId; AdfAssert.assertString(x57); var x58=AdfPage.PAGE.findComponent(x57); AdfAssert.assertPrototype(x58,AdfRichPopup); if (x58) { AdfDhtmlRichDialogService._unloadDocument(x58); x58.cancel(); } } AdfDhtmlRichDialogService._unloadDocument= function(x59) { AdfAssert.assertPrototype(x59,AdfRichPopup); var x60=x59.getProperty("_inlineFrameId"); var x61=AdfPage.PAGE.findComponent(x60); var x62=x61.getPeer(); x62.bind(x61); var x63=x62.__getIframe(); AdfAssert.assertDomElement(x63,"IFRAME"); x63.src="javascript:''"; } AdfDhtmlRichDialogService._getOpenDialogCount= function() { var x64=0; var x65=AdfDhtmlRichDialogService.getInstance().StateMap; if (x65) { for(rtnId in x65) { x64++; } } return x64; } AdfDhtmlRichDialogService._setDialogStateToken= function(x66,x67) { var x68="" + x66; var x69=AdfDhtmlRichDialogService.getInstance().StateMap; if (!x69) { x69= new Object(); AdfDhtmlRichDialogService.getInstance().StateMap=x69; } x69[x68]=x67; } AdfDhtmlRichDialogService._getDialogStateToken= function(x70) { var x71=AdfDhtmlRichDialogService.getInstance().StateMap if (!x71) { return null; } var x72="" + x70; return x71[x72]; } AdfDhtmlRichDialogService._removeDialogStateToken= function(x73) { var x74=AdfDhtmlRichDialogService.getInstance().StateMap; if (x74) { var x75="" + x73; delete x74[x75]; } } AdfDhtmlRichDialogService._openWindow= function(x76,x77,x78,x79) { var x80=AdfPage.PAGE; var x81=x80.getDomWindow(); AdfCollections.union(AdfDhtmlRichDialogService._WINDOW_DEFAULT_FEATURES_MAP,x78,x78); var x82=AdfDhtmlRichDialogService._buildFeatureString(x78); var x83=AdfDhtmlRichDialogService._encodeURL(x76,x79); var x84=x81.open(x83,x77,x82); try { x84.opener=x81; }catch(e) { AdfLogger.LOGGER.logErrorAsWarning(e," error setting opener of child window."); } return x84; } AdfDhtmlRichDialogService._buildFeatureString= function(x85) { var x86=""; for(var x87 in x85) { if (x86.length>0) { x86+=","; } x86+=x87 + "=" + x85[x87]; } return x86; } AdfDhtmlRichDialogService._encodeURL= function(x88,x89) { AdfAssert.assertString(x88); AdfAssert.assertNumeric(x89); return x88 + "&_rtrnId=" + x89; } AdfDhtmlRichDialogService._showModalGlass= function() { var x90=AdfPage.PAGE; var x91=x90.getModalityManager(); var x92=x90.getZOrderManager(); var x93=x90.getDomDocument(); var x94=x93.createElement("div"); x92.addElementToLayer(x94,AdfDhtmlZOrderManager.FLOATINGTYPE_WINDOW); x91.pushModal(x94); x92.removeElement(x94); } AdfDhtmlRichDialogService._hideModalGlass= function() { var x95=AdfPage.PAGE.getModalityManager(); x95.popModal(); } AdfDhtmlRichDialogService._installBeforeUnloadHandler= function() { if (AdfDhtmlRichDialogService._getOpenDialogCount()==0) { AdfAgent.AGENT.addBubbleEventListener(AdfPage.PAGE.getDomWindow(), "beforeunload", AdfDhtmlRichDialogService._beforeUnloadHandler); } } AdfDhtmlRichDialogService._uninstallBeforeUnloadHandler= function() { if (AdfDhtmlRichDialogService._getOpenDialogCount()==0) { AdfAgent.AGENT.removeBubbleEventListener(AdfPage.PAGE.getDomWindow(), "beforeunload", AdfDhtmlRichDialogService._beforeUnloadHandler); } } AdfDhtmlRichDialogService._beforeUnloadHandler= function(x96) { var x97=AdfPage.PAGE.getLookAndFeel(). getTranslatedString("af_document.MSG_DEPENDENT_DIALOGS"); x96.returnValue=x97; return x97; } AdfDhtmlRichDialogService._popupOpenedHandler= function(x98) { var x99=AdfAgent.AGENT; var x100=AdfPage.PAGE; var x101=x98.getSource(); var x102=x101.getPeer(); x102.bind(x101); var x103=x102.getDomElement(); var x104=x101.getProperty("_panelWindowId"); var x105=x101.getProperty("_inlineFrameId"); var x106=x100.findComponent(x105); var x107=x106.getPeer(); x107.bind(x106); var x108=x107.__getIframe(); AdfAssert.assertDomElement(x108,"IFRAME"); var x109=x101.getProperty("_rtnId"); x99.setExpandoProperty(x108,"_panelWindowId",x104); x99.setExpandoProperty(x103,"_inlineFrameId",x105); x99.setExpandoProperty(x108,"_rtnId",x109); x99.addBubbleEventListener(x108,"load",AdfDhtmlRichDialogService._iframeLoadHandler); var x110=x101.getProperty("_dialogURL"); x108.src=x110; if ((0!=(x100.getPPRNavigationOptions()&AdfDhtmlPage.PPR_NAVIGATION_ON))) AdfDhtmlRichDialogService._checkForIframeTitleChangeWithPPRNavOn(x109) } AdfDhtmlRichDialogService._popupClosedHandler= function(x111) { var x112=AdfAgent.AGENT; var x113=x111.getSource(); var x114=x113.getPeer(); x114.bind(x113); var x115=x114.getDomElement(); var x116=x112.getExpandoProperty(x115,"_inlineFrameId"); var x117=x113.getProperty("_rtnId"); var x118=AdfPage.PAGE.findComponent(x116); AdfAssert.assertPrototype(x118,AdfRichInlineFrame); var x119=x118.getPeer(); x119.bind(x118); var x120=x119.__getIframe(); AdfAssert.assertDomElement(x120,"IFRAME"); x112.removeBubbleEventListener(x120,"load",AdfDhtmlRichDialogService._iframeLoadHandler); AdfDhtmlRichDialogService._removeDialogStateToken(x117); AdfDhtmlRichDialogService._uninstallBeforeUnloadHandler(); AdfDhtmlRichDialogService._notifyWindowClosed(x117); } AdfDhtmlRichDialogService._iframeLoadHandler= function(x121) { var x122=AdfAgent.AGENT; var x123=AdfPage.PAGE; var x124=x122.getEventTarget(x121); if (!x124) { x124=x121.currentTarget; } AdfAssert.assertDomElement(x124,"IFRAME"); var x125=x122.getExpandoProperty(x124,"_panelWindowId"); AdfAssert.assertString(x125); var x126=x123.findComponent(x125); AdfAssert.assertPrototype(x126,AdfRichPanelWindow); var x127=x124.contentWindow; var x128=x127.document.title; if (x128) { x126.setTitle(x128); } } AdfDhtmlRichDialogService._checkForIframeTitleChangeWithPPRNavOn= function(x129) { AdfAssert.assertNumeric(x129); var x130=AdfDhtmlRichDialogService._getDialogStateToken(x129); if (!x130) return; var x131=AdfPage.PAGE; var x132=x130.popupId; AdfAssert.assertString(x132); var x133=x131.findComponent(x132); if (!x133) return; AdfAssert.assertPrototype(x133,AdfRichPopup); var x134=x133.getPeer(); x134.bind(x133); var x135=x134.getDomElement(); var x136=AdfAgent.AGENT; var x137=x136.getExpandoProperty(x135,"_inlineFrameId"); var x138=AdfPage.PAGE.findComponent(x137); AdfAssert.assertPrototype(x138,AdfRichInlineFrame); var x139=x138.getPeer(); x139.bind(x138); var x140=x139.__getIframe(); AdfAssert.assertDomElement(x140,"IFRAME"); var x141=x136.getExpandoProperty(x140,"_panelWindowId"); AdfAssert.assertString(x141); var x142=x131.findComponent(x141); AdfAssert.assertPrototype(x142,AdfRichPanelWindow); var x143=x140.contentWindow; var x144=x143.document.title; if (x144) { x142.setTitle(x144); } x131.scheduleTimer(x131,AdfDhtmlRichDialogService._checkForIframeTitleChangeWithPPRNavOn,x129,3000); } AdfDhtmlRichDialogService._notifyWindowClosed= function(x145) { var x146=AdfPage.PAGE; x146.__notifyWindowCloseImmediately(true,x145); } AdfDhtmlRichDialogService._WINDOW_MODALITY_TYPE_APPLICATION_MODAL="applicationModal"; AdfDhtmlRichDialogService._WINDOW_DEFAULT_FEATURES_MAP= { alwayslowered:1, alwaysraised:1, channelmode:0, copyhistory:0, dependent:1, directories:0, fullscreen:0, hotkeys:1, location:0, menubar:0, resizable:1, scrollbars:1, status:1, titlebar:1, toolbar:1, "z-lock":1 }; function AdfRichInlineEditor() { } AdfObject.createSubclass(AdfRichInlineEditor); AdfRichInlineEditor.FILTER_UNSELECTABLE=0; AdfRichInlineEditor.FILTER_SELECTABLE=1; AdfRichInlineEditor.FILTER_EDITABLE=2; AdfRichInlineEditor.prototype.Init= function() { AdfRichInlineEditor.superclass.Init.call(this); this._component=null; } AdfRichInlineEditor.prototype.preEdit= function(x0) { var x1=this._component; var x2=false; try { this._component=x0; x2=this.PreEdit(); } finally { this._component=x1; } return x2; } AdfRichInlineEditor.prototype.startEdit= function(x3,x4) { AdfAssert.assertPrototype(x3,AdfUIComponent); AdfAssert.assert(this._component==null,"start called on an already started inline editor"); this._component=x3; } AdfRichInlineEditor.prototype.getEditedComponent= function() { return this._component; } AdfRichInlineEditor.prototype.getEditedProperty= function() { AdfAssert.failedInAbstractFunction(); } AdfRichInlineEditor.prototype.handleEvent= function(x5) { } AdfRichInlineEditor.prototype.stopEdit= function() { this._component=null; } AdfRichInlineEditor.prototype.GetEditedPeer= function() { var x6=this._component; var x7=x6.getPeer(); x7.bind(x6); return x7; } AdfRichInlineEditor.prototype.PreEdit= function() { AdfAssert.failedInAbstractFunction(); }